[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

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

2004-03-22 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] 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 few

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]

[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

[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

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

2004-03-22 Thread Chris W. Parker
Elliot J. Balanza mailto:[EMAIL PROTECTED] 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 for

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

2004-03-22 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] 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?? ?php

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

2004-03-22 Thread Chris W. Parker
Andy B mailto:[EMAIL PROTECTED] 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

[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

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

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: [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: 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

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 and