Search found 5 matches

by Aronick
Tue Feb 03, 2004 9:08 pm
Forum: PHP - Code
Topic: Session & if question
Replies: 7
Views: 1169

Okay hopefully one last thing.

How do I make it so that the session stays for a specific amount of time like a cookie? I looked and tried few things on php.net but I couldn’t seem to find out how to do it.

Thanks.
by Aronick
Fri Jan 30, 2004 7:21 pm
Forum: PHP - Code
Topic: Session & if question
Replies: 7
Views: 1169

And where would I put that code? Becuase I replaced it where session_start() was but it is giving me this error now: Warning: Trying to destroy uninitialized session in /home/break.php on line 2 Warning: Cannot add header information - headers already sent by (output started at /home/break.php:2) in...
by Aronick
Fri Jan 30, 2004 6:41 pm
Forum: PHP - Code
Topic: Session & if question
Replies: 7
Views: 1169

One last question, how do I go about deleting the session? I tried setting the TRUE in the code below to FALSE but it didn't work.

$_SESSION['style2'] = "TRUE"; //set session to TRUE
by Aronick
Fri Jan 30, 2004 4:41 pm
Forum: PHP - Code
Topic: Session & if question
Replies: 7
Views: 1169

It works just how I want it to, thank-you so much :)
by Aronick
Thu Jan 29, 2004 9:45 pm
Forum: PHP - Code
Topic: Session & if question
Replies: 7
Views: 1169

Session & if question

Okay now I'm trying to setup my site to have 2 different layouts. Now currently the site is programmed in php. What I was thinking about doing was if someone wanted to change the layout they could simply click a link and it would set a cookie or I believe a session(?) as it's called in php. Now from...