Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6743 > unrolled thread

PHP Session Variable

Started byansry user 01 <yrsna.resu01@gmail.com>
First post2012-08-08 08:32 -0700
Last post2012-08-17 09:47 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  PHP Session Variable ansry user 01 <yrsna.resu01@gmail.com> - 2012-08-08 08:32 -0700
    Re: PHP Session Variable Christoph Becker <cmbecker69@gmx.de> - 2012-08-08 17:43 +0200
    Re: PHP Session Variable simgish <ryandoughty@gmail.com> - 2012-08-17 09:47 -0700

#6743 — PHP Session Variable

Fromansry user 01 <yrsna.resu01@gmail.com>
Date2012-08-08 08:32 -0700
SubjectPHP Session Variable
Message-ID<faab760e-1aed-4746-86bd-ea40449413b1@googlegroups.com>
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.

[toc] | [next] | [standalone]


#6744

FromChristoph Becker <cmbecker69@gmx.de>
Date2012-08-08 17:43 +0200
Message-ID<jvu1e9$3qf$2@speranza.aioe.org>
In reply to#6743
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

[toc] | [prev] | [next] | [standalone]


#6809

Fromsimgish <ryandoughty@gmail.com>
Date2012-08-17 09:47 -0700
Message-ID<42db4a0c-932d-4044-ad43-b54e2634e77f@googlegroups.com>
In reply to#6743
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web