Re: Problem with sessions.

From: Date: Mon, 13 May 2002 14:08:53 +0000
Subject: Re: Problem with sessions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97349@lists.php.net to get a copy of this message
php4 sessions or self made? own session_set_save_handler? Let us see the login code! Ok...that's how i would do it: After successful login i'd register a variable or set the registered variable to a specific value. Now i check on every page: If (!IsSet($_SESSION["myLoginVar"] ) || $_SESSION["myLoginVar"] != "myval") { //login page } Else { // logged in } Regards Michael "Ben Edwards" <ben@videonetwork.org> schrieb im Newsbeitrag news:5.1.0.14.2.20020513143229.03383b50@post.gifford.co.uk... > I am using sessions for holding who is logged in and it is kind of > working. I have got a few emails from customers saying they cant log in > (and seeing as we have had less than 30 orders this is a real problem). I > can log in OK and cant recreate this problem. Any ideas regarding what > this could be would be much appreciated. > > I guess if you have cookies turned of it wont work but what else may cause > a problem. > > Regards, > Ben > > **************************************************************** > * Ben Edwards +44 (0)117 9400 636 * > * Critical Site Builder http://www.criticaldistribution.com > * > * online collaborative web authoring content management system * > * Get alt news/viws films online http://www.cultureshop.org > * > * i-Contact Progressive Video http://www.videonetwork.org > * > * Smashing the Corporate image http://www.subvertise.org > * > * Bristol Indymedia http://bristol.indymedia.org > * > * Bristol's radical news > http://www.bristle.org.uk * > * PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 * > **************************************************************** >

« previous php.general (#97349) next »