FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » session variable doesn't appear in side bar
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session variable doesn't appear in side bar [message #177506 is a reply to message #177495] Tue, 03 April 2012 08:03 Go to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Error / Status Reporting Software
Next Topic: A little tip
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 15:40:51 GMT 2024

Total time taken to generate the page: 0.04308 seconds