Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sessions problem in php+flash menu

Status
Not open for further replies.

jamesp0tter

Programmer
Feb 20, 2003
119
PT
i use a flash menu in my new website, generated by a external .txt file like "linktext|linkurl|window\n" and so on for each item.
but when i tryed to make sessions work, the session appears registered in the first page, but after i link to another through a flash menu item, it doesn't register anymore in the other pages.

anyone know the problem ? :|
tia
 
Please elaborate as how your question relates to PHP.
 
my basic problem is that flash links (getURL();) don't seem to pass sessions. with a regular link they do, with flash links they don't.
at least with me :\
 
Still, I do not understand what role PHP plays in this context. Where do you use PHP? Are the links PHP scripts?
 
no, it's like this:
i have a flash button that links to page2.php in page1.php...
in both pages i have a session_start(); , and in page1.php i get my session variable 'test' recognized, and in page2.php i don't...

if i put a regular <a> link in page1.php to link to page2.php, i get my 'test' variable to page2.php through sessions without a problem, and with the flash button i can't :x

the only role PHP plays is with the sessions :p
 
I suspect that the Flash methof getURL() does not pass on the cookie with the SessionID. That would make PHP forget the values on the following page and start a new session.

You can test which sessionID is used on the pages, just echo the cookie variables. If there are no cookie vars on the second page you need to find out how Flash can handle cookies.
 
yeh.. i guess it doesn't :'( i tried to append the session id to every link and then re.set it in the new page with the passed variable but it doesn't work :\ damn.. i'll have to control the user by cookies :|

tks 4 u'r help []

over and out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top