return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Fao Php Geeks
View this Thread in Original format
Lunar Phase 7
Okay quick sessions question.

Suppose I have a form that gives me this in a different script.

$id = $_POST(id);

why does this not work?

$_session[$id] = 1;

is it because it being assigned globally?

how do you assing a session with a value based on a variable?
Sushipunk
I just bought a pair of these today :o
LeopoldStotch
your session could be timing out. see about upping your session duration.

some helpful links.

sessions

session_cache_expire

hopefully this may help you. ;)
LeopoldStotch
You may also want to take a look at this

link
Lunar Phase 7
hmmm, thanks. It's not timing out, and I am starting the session at the top of the script.

Cheers, anyway bud.
ziptnf
Try naming the field variable that you are getting from POST different than the variable that you're assigning it to. Not sure if that's your problem, maybe more code from your script will help solve the problem.
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement