[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] PHP Sessions on Raq4 (More Info)
- Subject: RE: [cobalt-developers] PHP Sessions on Raq4 (More Info)
- From: "Rus Rasmussen" <rus@xxxxxxxxxxx>
- Date: Sat Mar 2 02:45:59 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Herb,
I did exactly what you said and still nothing. I'm really baffled. I don't
get any errors.
Thanks for the help.
Rus
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Herb Rubin
Sent: Friday, March 01, 2002 10:30 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] PHP Sessions on Raq4 (More Info)
Why don't you try putting this PHP code at the top:
session_save_path("/home/sites/site29/tmp");
session_set_cookie_params(0, "/");
session_name("mycookie");
session_start();
Just make sure you create the tmp directory and set its permissions to 666:
chmod 666 /home/sites/site29/tmp
Also, I used site29 but you should use the site number on your system.
Herb
Jim Poe wrote:
> Rus Rasmussen wrote:
> >
> > Matt,
> >
> > Actually, nothing happens. I added the error_reporting( E_ALL );
feature as
> > Steve Werby suggested and still I get nothing. All I see when I run the
> > script is:
> >
> > * Counter initialized, please reload this page to see it increment
> > * The counter is now 0
> >
> > Then when I refresh it still says the same thing.
> >
> > I'm not very bright with this stuff but I appreciate the input. Any
other
> > suggestions would be welcomed.
> >
> > Rus
>
> Rus,
> I think the "session_start();" statement must be the first statements in
> the script. Even before any html. That is the problem I had early on.
>
> Hope this helps
> Jim Poe
> DSL Data Services
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
--
Herb Rubin Pathfinders Software
herbr@xxxxxxxxxxxx http://www.pfinders.com
phone: 650-692-9220 fax: 650-692-9250
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers