note 64704 added to ref.session

From: Date: Wed, 19 Apr 2006 20:41:47 +0000
Subject: note 64704 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-108695@lists.php.net to get a copy of this message
Two different web application using the same session variables: I have two totally different applications. They are all using session variables to authenticate users. When a user visit these two applications at the same time, if he logs out in one application, he will also be logged out automatically for the other one. Since the application's logout php script is: session_start(); session_destroy(); $_SESSION=array(); So, logging out in one application will actually destory all the session variable. Also, if they both authenticate a user based on checking session variable session['username'], when you login in one application, you actually logged in both. How can I make this work? ---- Server IP: 66.207.199.35 Probable Submitter: 129.128.99.7 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- http://master.php.net/note/edit/64704 Del: integrated -- http://master.php.net/note/delete/64704/integrated Del: useless -- http://master.php.net/note/delete/64704/useless Del: bad code -- http://master.php.net/note/delete/64704/bad+code Del: spam -- http://master.php.net/note/delete/64704/spam Del: non-english -- http://master.php.net/note/delete/64704/non-english Del: in docs -- http://master.php.net/note/delete/64704/in+docs Del: other reasons-- http://master.php.net/note/delete/64704 Reject -- http://master.php.net/note/reject/64704 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108695) next »