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
[Back to original message]
|