|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Session again
Hi
Thanks for you guys help in previous questions. appreciate it alot. I am using sessions to create a 'member section' in a application. I am using session_start() in each page and check for existance of a variable, namely login name to validate the user. If the session[loginname] is empty , then logout is forced. I never pass session id from page to page. Is it necessary to do so ? will it create prblem when few members login at same time from different locations ? thanks and hope to hear from you guys. Ben, hope to hear from you. Thanks again
__________________
Rathaur ====================== Knowledge is Power |
|
#2
|
|||
|
|||
|
It's not required.. it's done automatically. $PHPSESSID will contain the session id. You can store the session info in the db and use sessionid to get the data
|
|
#3
|
|||
|
|||
|
Thanks, how abt in a multi user enviroment, will there be any mixed up between the seesion ids .. ?
just curious thanks hope to hear some answers |
|
#4
|
|||
|
|||
|
no, the session data won't be mixed up. the session id is stored on the server and in a cookie on the users browser, that's how sessions work. it's basically transparent cookie usage
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Session again |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|