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

Home » Imported messages » comp.lang.php » PHP Session Variable
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP Session Variable [message #178815] Wed, 08 August 2012 15:32 Go to next message
ansry user 01 is currently offline  ansry user 01
Messages: 1
Registered: August 2012
Karma: 0
Junior Member
I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do additionally other then defining _SESSION[].
Any pointer.
Re: PHP Session Variable [message #178816 is a reply to message #178815] Wed, 08 August 2012 15:43 Go to previous messageGo to next message
Christoph Becker is currently offline  Christoph Becker
Messages: 91
Registered: June 2012
Karma: 0
Member
ansry user 01 wrote:
> I am setting the _SESSION variables in one of my file,
> but whenever I leave the php page session variables are not accessible.
> Not sure what I need to do additionally other then defining _SESSION[].
> Any pointer.

<http://www.php.net/manual/en/session.examples.php>
--
Christoph M. Becker
Re: PHP Session Variable [message #178880 is a reply to message #178815] Fri, 17 August 2012 16:47 Go to previous message
simgish is currently offline  simgish
Messages: 3
Registered: August 2012
Karma: 0
Junior Member
On Wednesday, August 8, 2012 11:32:43 AM UTC-4, a wrote:
> I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do additionally other then defining _SESSION[].
>
> Any pointer.

Make sure you have <?php session_start(); ?> at the top of your file.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: JSON variabiles
Next Topic: Freelance Web deveeloper/designer required
Goto Forum:
  

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

Current Time: Sun Nov 24 04:35:36 GMT 2024

Total time taken to generate the page: 0.02181 seconds