NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP $_SESSION

Tim Lieberman tim_lists at o2group.com
Thu Jun 5 19:25:00 EDT 2008


SSH into the box:

cd /
ls -l

-- what are the owner and permissions on /tmp?

cd /tmp
ls

do you see php session files?

-Tim
On Jun 5, 2008, at 5:09 PM, Néstor wrote:

> I tested the same small program on my other server and the value
> changes everytime.
>
> PHP works on both the old an the new system
>
> What should I check that I might be missing on one system compare  
> to the other
> so I can pass SESSION information.
>
> Remeber my old system is RHEL 3/apache 1.39/ php 4.3.2  <-- WORKS
> New system is RHEL 5.1/ apache 2.2.3/  php 5.1.6  <-- DOES NOT WORK
>
> :-)
>
> On Thu, Jun 5, 2008 at 4:01 PM, Néstor <rotsen at gmail.com> wrote:
>
> I tested this small program and the value is always 1
>
>
>
> On Thu, Jun 5, 2008 at 3:53 PM, John Campbell  
> <jcampbell1 at gmail.com> wrote:
>
> I assume you are testing with a simple page like
>
> <?php
> session_start();
> echo ++$_SESSION['foo'];
>
> The number should increase on every refresh.  Does it just print 1
> every time?  Are there files in /tmp that look like
> "sess324afd9asd91874ea"?  Delete your cookies and refresh the page and
> check for a cookie like: PHPSESSID=324afd9asd91874ea ?
>
> -John C.
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080605/fcfa3a6d/attachment.html>


More information about the talk mailing list