You are here: Re: Passing session variables across pages « PHP Programming Language « IT news, forums, messages
Re: Passing session variables across pages

Posted by K. A. on 05/07/07 08:17

On May 6, 6:29 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
> > Back again,
> > I guess I know where the problem is. I found out that session
> > variables are somewhat lost when I use the "header" function as in:
>
> > header('Location:http://example.com/test/testvariables.php);
>
> > User is correctly taken to the personalised page using the above line,
> > but then the session variables get lost!
>
> > My question now is: once I found out the userid and I know what page
> > to take him to, what is the best way to re-direct him to that page
> > without losing session variables?
>
> Do you have session_start() at the beginning of the new page, also?

Yes, I do have session_start(); first thing in all of my php pages.



> If you're set up to use cookies to store the session id, this should
> have no effect on session variables.

Sorry, I did not get you!

K.A.

 

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

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