Reply to Re: Session generation problem

Your name:

Reply:


Posted by Erwin Moller on 08/24/05 18:02

varungupta wrote:

> Hi Erwin !
>

Hi,

> Its great to have reply from your side.

*blushes*

> I have checked all the points mentioned by you and found that the
> session is starting and cookies are generated on both server as well as
> client side.
> We have tried a test script to check session handling.
> We started a general session by simply using session_start() and found
> that the session was successfuly generated. We even stored and
> successfully retrieved values on the same page but when we moved to
> next page the session was not there, i.e. session was not continued on
> next page.
> Now please enlighten me.

Ok, always good to make a few simple scripts to test this. :-)

so: page1.php starts a session.
page2.php tries to read the session (without succes).

Try to add on page2.php some things like:
- echo session_id()
- dump all cookies print_r($_COOKIES);

what do they say?

and maybe read up here (if you didn't do so already)
http://nl2.php.net/manual/en/ref.session.php


Last resort:
I had some (confusing) trouble with Sessions before, when using
session_start().
I switched to 'session.auto_start' by modifying php.ini, and I never had
problems again. :-/
If you can modify php.ini, you could give that a try.
You can also delete all session_start() from your scripts then. :-)

Hope that helps a bit.
It is always difficult to debug a remote system. :P

Reagrds,
Erwin Moller

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

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