session variable doesn't appear in side bar [message #177495] |
Mon, 02 April 2012 07:05 |
Adusei
Messages: 1 Registered: April 2012
Karma: 0
|
Junior Member |
|
|
i have a website,i have slited it into header,side bar,footer and
content with php.i start a session in the header set a session vriable
in the log in page.but the session variable can not be retrieved in
the side bar.
|
|
|
Re: session variable doesn't appear in side bar [message #177497 is a reply to message #177495] |
Mon, 02 April 2012 10:55 |
Captain Paralytic
Messages: 204 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On Apr 2, 8:05 am, Adusei <nanareg...@gmail.com> wrote:
> i have a website,i have slited it into header,side bar,footer and
> content with php.i start a session in the header set a session vriable
> in the log in page.but the session variable can not be retrieved in
> the side bar.
Thanks for letting us know.
|
|
|
Re: session variable doesn't appear in side bar [message #177505 is a reply to message #177495] |
Tue, 03 April 2012 06:15 |
Scott Johnson
Messages: 196 Registered: January 2012
Karma: 0
|
Senior Member |
|
|
On 4/2/2012 12:05 AM, Adusei wrote:
> i have a website,i have slited it into header,side bar,footer and
> content with php.i start a session in the header set a session vriable
> in the log in page.but the session variable can not be retrieved in
> the side bar.
With the info provided, sounds like you have a problem with the tie-rod
attached to the server monochromatic schema detector.
Seriously, if you want the FREE help here that people put their time
into, put a bit extra time of your own into your question. The code you
already have would be a good start. Also proof read your question for
spelling so we don't have to guess the shorthand.
Scotty
|
|
|
Re: session variable doesn't appear in side bar [message #177506 is a reply to message #177495] |
Tue, 03 April 2012 08:03 |
Erwin Moller
Messages: 228 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 4/2/2012 9:05 AM, Adusei wrote:
> i have a website,i have slited it into header,side bar,footer and
> content with php.i start a session in the header set a session vriable
> in the log in page.but the session variable can not be retrieved in
> the side bar.
Are you serving multiple pages using frames?
Or is it all on the same page?
Where do you start the session?
Try debugging by adding the following code everywhere:
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
Regards,
Erwin Moller
--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
|
|
|