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

Posted by Erwin Moller on 09/20/05 14:10

Fran García wrote:

> I´ve a big problem with the session variables. I load audio files into
> media player using as src a php script that check some session
> variables and then load the audio file, something like that
>
> <mediaplayer src="displayfile.php?filename=myaudiofile.mp3">
>
> but in the script displayfile.php, I cannot access to the session
> variables. Is there a way to see the session variables in the example
> above?
>
> Thanks in advance!
>
> Fran García

Hi,

You above example has no sessionvariables.
Most of the time the SESSION is kept by a cookie, but as part of the URL it
is also possible.

In the last case you would expect something like:
<mediaplayer
src="displayfile.php?filename=myaudiofile.mp3&PHPSESSID=gjfds6a75fsda6f4">

I would advise you first to check if session works as you expect, and then
start working on streaming the audiofiles.

This is a good place to start:
http://nl3.php.net/session

Many things can go wrong when using sessions, to name a few:
- different domains do not share cookie and session
- you force session in cookie (via php.ini) but visitor blocks cookies.
- PHP cannot write sessionfiels away to some dir because of permissions.
etc.etc.

So maybe the thing to do is first figuring out with a simple script IF your
sessions work.

Good luck!

Regards,
Erwin Moller

 

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

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