Page 1 of 1

session var for all pages

Posted: Fri May 08, 2009 4:58 pm
by nqm
Dear,

Am new to PHP, I am not able to access the session variable on all of the website pages. However the PHP page where I have created the object of the class which actually starts the session, easily allows me to access all session properties.

I think the problem is with the object of the class that starts the session, can any one help me if this is the case then where I should place it, so that it would be easily accessible by all the pages directly.

thanks in adv

Re: session var for all pages

Posted: Fri May 08, 2009 5:12 pm
by Benjamin
Can you post your code please? You need to ensure that you are starting a session on all pages that require the use of sessions.

:arrow: Moved to PHP - Code