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
Switch to threaded view of this topic Create a new topic Submit Reply
session variable doesn't appear in side bar [message #177495] Mon, 02 April 2012 07:05 Go to next message
Adusei is currently offline  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 Go to previous messageGo to next message
Captain Paralytic is currently offline  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 Go to previous messageGo to next message
Scott Johnson is currently offline  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 Go to previous message
Erwin Moller is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Error / Status Reporting Software
Next Topic: A little tip
Goto Forum:
  

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

Current Time: Sat Nov 23 02:55:35 GMT 2024

Total time taken to generate the page: 0.03192 seconds