Re: Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Sat, 2010-03-13 at 12:49 +0200, Andre Polykanine wrote: > Hello Ashley, > > And if the site is full of that code?)) I think it's worth to learn > what's really the reason of the fact that it doesn't work. Besides > that, it's more readable for me. > And the right thing that was said here is th

Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
Date: Saturday, March 13, 2010, 12:33:46 PM Subject: [PHP] Re: PHP Sessions On Sat, 2010-03-13 at 12:22 +0200, Andre Polykanine wrote: > Hello Martine, > > As you have been already told, the is not always supported. > However I'd suggest you to do the following (since I love thi

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
> From: Martine Osias > To: php-general@lists.php.net > Date: Saturday, March 13, 2010, 4:33:34 AM > Subject: [PHP] Re: PHP Sessions > > The sessions variables are OK. They don't print when I put them on the HTML > page with this code. > > > > > &g

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Martine Osias To: php-general@lists.php.net Date: Saturday, March 13, 2010, 4:33:34 AM Subject: [PHP] Re: PHP Sessions The sessions variables are

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Fri, 2010-03-12 at 21:33 -0500, Martine Osias wrote: > The sessions variables are OK. They don't print when I put them on the HTML > page with this code. > > > > > > > align="right"> > > > Thank you. > > > Martine > > ""Martine Osias"" wrote in message > news:95.0c.13686.c7cd

[PHP] Re: PHP Sessions

2010-03-12 Thread Martine Osias
The sessions variables are OK. They don't print when I put them on the HTML page with this code. align="right"> Thank you. Martine ""Martine Osias"" wrote in message news:95.0c.13686.c7cda...@pb1.pair.com... Hi: I need to store variables to send then between pages. I don't need th

Re: [PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Angus Mann
same as everywhere else in your apps.. ajax is no different in any way at all, not even slightly. as far as PHP and web server is concerned it's just a plain old request same as any other; thus.. if( !$_SESSION['is_logged_in'] ) { exit(); } // do stuff Thanks for that. Sometimes the solution

[PHP] Re: PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Nathan Rixham
Angus Mann wrote: > Hi all. > > A question about PHP sessions and their interaction with AJAX. > > I have a database containing sensitive information and users need to log in > to my PHP script and be authenticated before they are granted access. > > For one of the forms I would like to retriev

Re: [PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread Ed Lazor
Check php.ini session settings. There are some options in there for you to use in your scripts. Set up scripts to test whether session cookies are being saved and then route accordingly. On Oct 28, 2006, at 12:41 PM, sit1way wrote: Hey all. I run a members-only hockey report that relies

[PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread sit1way
Hey all. I run a members-only hockey report that relies on Session variable(s) to grant/deny access to members-only site content. Generally members have no trouble accessing members-only content once logged-in to the site; however, since we have a few thousand members, I frequently receive tec

RE: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Warren Vail
, July 08, 2004 11:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP Sessions Question > On garbage collection, it happens sometimes within seconds and sometimes > within minutes. It tends to occur in batches with lulls of 20 to 30 > minutes. So, for example, I can login, navigate t

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Curt Zirzow
* Thus wrote My Self: > > or using the default handler, and the /tmp dir is full. where /tmp being the local value for your session.save_path ini setting. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Curt Zirzow
* Thus wrote Jason Barnett: > >On garbage collection, it happens sometimes within seconds and sometimes > >within minutes. It tends to occur in batches with lulls of 20 to 30 > >minutes. So, for example, I can login, navigate through 11 different pages > >to generate the problem, navigate 2 pages

Re: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Jason Barnett
On garbage collection, it happens sometimes within seconds and sometimes within minutes. It tends to occur in batches with lulls of 20 to 30 minutes. So, for example, I can login, navigate through 11 different pages to generate the problem, navigate 2 pages to generate the problem, and then not s

RE: [PHP] Re: PHP Sessions Question

2004-07-08 Thread Ed Lazor
Thanks Jason, I'll keep the information handy for creating my own session handler in case other options I'm exploring right now don't work. On garbage collection, it happens sometimes within seconds and sometimes within minutes. It tends to occur in batches with lulls of 20 to 30 minutes. So, fo

[PHP] Re: PHP Sessions Question

2004-07-08 Thread Jason Barnett
Ed Lazor wrote: What kind of problems could be happening server-side that would result in PHP sessions randomly disappearing? And, is there a way to log or track this information? Oh, and best of all, any recommendations on solutions? To try logging this, you probably need to make your own sessio

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread trlists
On 22 Mar 2004 Andy B wrote: > so the theory is: if i require that the session be named after the persons > login name there is probably 1 out of 2 million chances that it will mess up > the names and get confused (specially if there are only a few users > allowed)... If the login name is unique

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: > you've already got that unique identifier. it's the username. the > username will stay unique visit to visit, therefore you don't need to go > against the design of the session id. the session id is not meant to > keep uniqueness across multiple visits, only the current visit. > >

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: [snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and create a preferences section of the website im doing and that would require a constant session name from visit to visit Ummm... that's why you set a

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if th

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
you've already got that unique identifier. it's the username. the username will stay unique visit to visit, therefore you don't need to go against the design of the session id. the session id is not meant to keep uniqueness across multiple visits, only the current visit. are we/me misunderstanding

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:49 PM said: > because eventually i want to take the user name (session > name/variables/user info) and create a preferences section of the > website im doing and that would require a constant session name from > visit to visit yeah

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:43 PM said: > as long as your usernames are unique you should never have a problem. > (assuming everything else works as planned.) > > it should... it will. a unique value is a unique value. > is this code valid?? > if(session_s

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Elliot J. Balanza on Monday, March 22, 2004 3:43 PM said: > What are the chances of two people getting the same session number in > a thousends of day operation? > When you down the size of that to a couple hundeed a day... > > WHy do we need to have a session name

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
What are the chances of two people getting the same session number in a thousends of day operation? When you down the size of that to a couple hundeed a day... WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and cre

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if the session isnt

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Elliot J. Balanza
What are the chances of two people getting the same session number in a thousends of day operation? When you down the size of that to a couple hundeed a day... WHy do we need to have a session name for that? Vamp "Chris W. Parker" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:19 PM said: > so the theory is: if i require that the session be named after the > persons login name there is probably 1 out of 2 million chances that > it will mess up the names and get confused (specially if there are > only a fe

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
[snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as it's going to b

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > Hmmm, I would contend that PHP, particularly running inside stateless > HTTP, doesn't know one client from another except by the code you write > that makes it recognize them You're exactly right. > if you had a way to set multiple cookies (easy) and to know which

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 17 Mar 2004 Tom Rogers wrote: > The default lifetime for session cookies is until the browser is > closed. Of course. > You can run multiple sessions as long as they are to different > domains I think. I am pretty sure PHP can only handle 1 session per > client but you could always roll yo

Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:28:04 AM, you wrote: tcc> On 16 Mar 2004 [EMAIL PROTECTED] wrote: tcc> I have had questions about this for a while. What is it about closing tcc> and reopening the browser that PHP "notices" and that invalidates the tcc> old session? tcc> Also a comment ... I th

Re: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 16 Mar 2004 [EMAIL PROTECTED] wrote: > Sessions have to do with requests being sent by browsers to the web server. Each > time > you close all the windows of your browser on your computer and start the browser > again, a new session is started. I suspect that since all your users are essenti

[PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread memoimyself
Damon, Sessions have to do with requests being sent by browsers to the web server. Each time you close all the windows of your browser on your computer and start the browser again, a new session is started. I suspect that since all your users are essentially using the same web browser (since t

[PHP] Re: PHP Sessions

2004-02-29 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 if you try, i think you will see that you can Paul Higgins wrote: Hello everyone, I'm beginning to experiment with PHP sessions. I was wondering if it is possible to place objects into the session? Thanks, Paul _

[PHP] Re: PHP Sessions

2003-01-21 Thread Foong
I used to have the same problem(sort of) I am not sure if my solution applies to you. Here is what i did, to pass session to one page to another you must call session_start(); ON EVERY PAGE to access registered session variables use the session super global array like: $_SESSION['userid']; Sorr

[PHP] Re: PHP Sessions

2002-12-04 Thread Bastian Vogt
If the session is started on any other page befor and the variable is registered before, the answer should be "yes". AFAIK, php treats the main script and the included ones as one script. Maybe the session_start() is missing somewhere? Regards, Bastian Andy Kirk schrieb: > Can anyone tell me if

[PHP] Re: Php Sessions

2002-05-05 Thread Daniel Svanbäck
I'm using winxp and php.. can this be the problem. I solved the problem by donwgrade to php 4.1.0.. "Austin Marshall" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Daniel SvanbäCk wrote: > > Hi > > > > I have a problem. I can't send the session_id to the ne

[PHP] Re: Php Sessions

2002-05-05 Thread Austin Marshall
Daniel SvanbäCk wrote: > Hi > > I have a problem. I can't send the session_id to the next page. It worked > before (when I had an old version of php, now I have 4.2.0). It can send the > session_id() if it's a link, but not a header(). If it is a header I have to > do this: > > define('MYSID', s

[PHP] Re: PHP Sessions/P3P Questions

2002-04-10 Thread Michael Kimsal
Richard Spangenberg wrote: > Hi, > > I am using PHP Sessions in my coding. I have noticed that my cookies work > just fine in MSIE 6.0 if the browser's privacy setting is set to low. > However, in all other settings it is not responding. I bleive this is > because of the P3P privacy setting. I

[PHP] Re: PHP Sessions

2002-01-23 Thread Yasuo Ohgaki
David Orn Johannsson wrote: > I'm Trying to make a simple authentication for a news-system. > I have a encrypted passwd in a db that i fetch and compare to the user > input and if it compares ok then the user sees the catagories that he > can select from. > > The thing is I'm not quite getting t

[PHP] Re: php sessions limit

2001-12-18 Thread Chris Lee
its irrelevant. now there is a file system dependancy. in linux is inodes, not enough and you'll have some problems, win2k I dont know. -- Chris Lee [EMAIL PROTECTED] "Aaustin" <[EMAIL PROTECTED]> wrote in message 002101c18293$671c5d00$0300a8c0@tomato">news:002101c18293$671c5d00$0300a8c0@t