|
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]
|