You are here: Re: MySql session not working « PHP Programming Language « IT news, forums, messages
Re: MySql session not working

Posted by Erwin Moller on 07/08/07 10:24

tomb wrote:

> This is my first time using php and sessions. I am trying to follow
> what I recently read, but it isn't working as I was expecting. Please
> tell me what I'm doing wrong?
>
> I have defined my session handlers in a session handler include file,
> sessions.php. This file calls session_set_save_handler() and also calls
> session_start(). Each handler function operates correctly when I login
> - the data is put into the session table.
>
> After successful login, the user is redirected to /path/index.php, which
> includes sessions.php. session_start() is called again, but the
> $_SESSION global has no data.
>
> I know the individual pieces of code are working properly, because at
> one point in the process they individually worked. But when I put it
> all together, it just keeps going back to the login page.
>
> Thanks in advance
>
> Tom

Hi Tom,

Nobody can answer this question based on the information you provided.
Clearly something goes wrong with your custum session handler, but how can
we tell if we see 0 code?

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

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