You are here: RE: [SPAM 6.0] [PHP] Session help!? « PHP « IT news, forums, messages
RE: [SPAM 6.0] [PHP] Session help!?

Posted by "Programmer" on 07/22/05 00:21

The biggest gotcha that I have ran into concerning sessions is this:

If your client's browser is I.E. and the domain is named with
_(underscores), -(dashes), etc. I.E. discards the session and starts a
new one. I don't know if this is fixed under SP2.

Example: a domain name http://my-domain.com will cause I.E. to lose
sessions; however, there is a way around this if your are developing
this for an internal website, you can simply add a host file record to
utilize the actual IP.
Example:
http://my-domain.com 225.225.225.1

If your client's browser is not I.E. then make sure all of your php.ini
variables are as they need to be regarding sessions.


Hope this helps.


-----Original Message-----
From: Richard Baldwin [mailto:rich@rtza.net]
Sent: Friday, June 10, 2005 3:46 PM
To: php-general@lists.php.net
Subject: [SPAM 6.0] [PHP] Session help!?

Hey,

I have a site where I am using session_start() at the beginning of each
page. The session id is passed transparently from the first page but
after that it dissapears from the links and I lose all my session
variables.

Is there something elementary I'm missing? This is my first stab at PHP
so I could be overlooking something really obvious or not really
understanding how its supposed to work.

The trans_id thingy is enabled by the way.

Thanx in advance,
Rich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 

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

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