You are here: Re: Flash & PHP Session « PHP Programming Language « IT news, forums, messages
Re: Flash & PHP Session

Posted by Steve Cook on 08/22/06 19:47

amygdala wrote:
> <snip>
>
> >>>>>Is there anyway that I can
> >>>>>conitnue the PHP session when doing this or does the user have to visit
> >>>>>the PHP page?
>
> <snip>
>
> So basically; what I'm trying to say here is: Yes, you need flash embedded
> in _a_ (not _the_) php script (within the same domain of course) to read the
> cookie, and Jerry was right. ;)
>
> As a last resort to ommitting flash put in a php file, you could use
> javascript to read the cookie and append the PHPSESSID var. But you would
> have to rely on the user having javascript turned on. Which is a rather big
> no no.
>
> Also, I've been out of webdeveloping for a while, so I'm not sure whether
> this is still allowed by the majority of browsers anyway.
>
> HTH

Thanks for all of your help. I ended up adding the following to the
php page to continue the session and accept the session_id from Flash:

[CODE]

<?
if (!session_id()) {
if (isset($_GET['session_id'])) {
session_id($_GET['session_id]);
}
session_start();
}
?>

[/CODE]

Thanks again.

Steve

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация