session_start()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sebs
Forum Commoner
Posts: 97
Joined: Tue Sep 20, 2005 10:13 am

session_start()

Post by sebs »

Is someway session_start() conflicting with $_GET and $_POST,can I use $_REQUEST instaid of $_GET to get the variables?
I have a file that uses $_GET,$_POST and I am trying to use sessions but it doesn't work corectly after I use session_start().
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

session_start() does not interfere with $_GET, $_POST or $_COOKIE with the only exception that it uses them to store the session ID. (default key is PHPSESS)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ahem, PHPSESSID ;)
Post Reply