Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Fao Php Geeks
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
Lunar Phase 7
Not a Flying Toy.



Registered: Dec 2004
Location: Zone 4
Fao Php Geeks

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?


___________________
Nothing lasts, nothing lasts, everything is changing into something else. Nothing is wrong, nothing is wrong, everything is on track...

You know, William Blake said... uh, nothing is lost. Nothing is lost and I... I really believe that, we only move on...

Old Post Apr-03-2009 07:21  United Kingdom
Click Here to See the Profile for Lunar Phase 7 Click here to Send Lunar Phase 7 a Private Message Add Lunar Phase 7 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Sushipunk
Flickering, I roam



Registered: Sep 2006
Location: Chateau Verdafloor

I just bought a pair of these today


___________________

Old Post Apr-03-2009 07:23  Australia
Click Here to See the Profile for Sushipunk Click here to Send Sushipunk a Private Message Visit Sushipunk's homepage! Add Sushipunk to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles

your session could be timing out. see about upping your session duration.

some helpful links.

sessions

session_cache_expire

hopefully this may help you.


___________________

Old Post Apr-03-2009 07:26  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
LeopoldStotch
Suapremae tranecadictt



Registered: Jan 2005
Location: Yawbs,Giaks,and Automobiles

You may also want to take a look at this

link


___________________

Old Post Apr-03-2009 09:16  United States
Click Here to See the Profile for LeopoldStotch Click here to Send LeopoldStotch a Private Message Visit LeopoldStotch's homepage! Add LeopoldStotch to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Lunar Phase 7
Not a Flying Toy.



Registered: Dec 2004
Location: Zone 4

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

Cheers, anyway bud.


___________________
Nothing lasts, nothing lasts, everything is changing into something else. Nothing is wrong, nothing is wrong, everything is on track...

You know, William Blake said... uh, nothing is lost. Nothing is lost and I... I really believe that, we only move on...

Old Post Apr-03-2009 11:06  United Kingdom
Click Here to See the Profile for Lunar Phase 7 Click here to Send Lunar Phase 7 a Private Message Add Lunar Phase 7 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
ziptnf
Programming your future



Registered: Jun 2008
Location: Louisville, KY

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.


___________________

Set Archive | TA DJ Challenge

Old Post Apr-03-2009 12:14 
Click Here to See the Profile for ziptnf Click here to Send ziptnf a Private Message Visit ziptnf's homepage! Add ziptnf to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Fao Php Geeks
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackHelp - Been Searching For Ages [2007] [5]

Click here to listen to the sample!Pause playbackMiikka & Jussi - "Highway Patrol" [2005]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 12:11.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!