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 <[EMAIL PROTECTED]> 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to