Re: Store array as Session Variable

From: Date: Mon, 28 Jul 2003 20:55:42 +0000
Subject: Re: Store array as Session Variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157241@lists.php.net to get a copy of this message
Hello Chris, I am using session_start(). All the pages after the login page use sessions and will redirect the user to the login page, if he/she is NOT logged in. So I am guessing the error lies in my logic somewhere. Thanks again. --Pushpinder On Monday, July 28, 2003, at 04:51 PM, Chris Shiflett wrote:
--- Pushpinder Singh Garcha <pgarcha@adelphia.net> wrote:
However if I decided to use the sessions approach how would I go about it? I am just curious to find out why $_SESSION['company_name'] = $company_name; duz not werk for me!
Did you use session_start() like I mentioned? If so, you are probably making an error somewhere due to the complexity of your script(s). If you want to learn how to use sessions, focus on that and nothing else (e.g., forget interacting with a database, passing URL variables, etc.). Start with a simple example, get that to work, then integrate it into what you are trying to do. Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#157241) next »