Current location: Hot Scripts Forums » Programming Languages » PHP » Weird behaviour with sessions


Weird behaviour with sessions

Reply
  #1 (permalink)  
Old 10-27-04, 10:26 PM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
Weird behaviour with sessions

Hi all,

I have an issue with session cookies not always being set. I have a chat room script which uses sessions, but quite often people complain of it logging them right back out as soon as they try to do anything.. this is caused by a missing session id, normally found in the cookie..

90% of people including myself never have any problems with it, but a small minority of people do. At first I thought it was the privacy settings in IE6, but some people are still experiencing the problem with it set to allow all cookies.

The strange thing is that I never have this problem with regular cookies.. the old version of my software used plain old cookies and nobody ever had a problem.. but since I switched over to sessions, the problem has occured..

I've tried setting session lifetime to as high as 24 hours incase there was some issue with time zones, but this makes no difference !

Will sessions still function correctly if I retrieve the session id of the new session right after session_start() and manually set the cookie ? (as opposed to just letting it set the cookie automatically)

Any other suggestions are welcome..


Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-27-04, 10:42 PM
handry handry is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
why dont you put the coding here , so that we can see more details to help you.
__________________
50Mb PHP+MySQL FREE Web Hosting and Techindo Affordable Prices Hosting
(Fantastico(20+ top scripts), Live Support 24/7, Uptime 99,99%, cPanel)

Internet Marketing Strategy and Online Business Strategy Resources
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The power of sessions? perleo PHP 3 07-25-05 07:32 AM
sessions mivec PHP 0 04-12-04 07:51 AM
Multiple sessions Kaanha PHP 2 01-16-04 11:39 AM
PHP & sessions, why won't it work? TinnyFusion PHP 1 10-04-03 02:51 PM
Sessions konigwolf PHP 3 09-11-03 03:09 PM


All times are GMT -5. The time now is 04:09 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.