Current location: Hot Scripts Forums » Programming Languages » PHP » sessions not working, please help!


sessions not working, please help!

Reply
  #1 (permalink)  
Old 04-28-05, 04:35 PM
tallpaul858 tallpaul858 is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
sessions not working, please help!

i have the following errors when trying to use sessions in php. also it seems that sessions aren't working at all now! (errors below)

i am using a virtual dedicated server, and i know that /tmp exists and has at some points had sessions stored in it. also the disk quota is allocated space is 100MB, and im using only 5.5MB.

what should i set my php.ini settings to? session.auto_start = 0 at the mo, which i think is correct. session.save_path = /tmp

please help!

Warning: Unknown(): write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
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 04-28-05, 05:51 PM
tallpaul858 tallpaul858 is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
SORRY!! ive got it sorted! just for others, you have to sure all users on your web server are not at there max quota in some situations.

these error messages relate to the fact that sessions are getting stored on your server and not deleted, once finished with. you need to delete these all periodically.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-29-05, 07:23 AM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Actually this is a deeper issue than that. By default ALL sessions are stored in the same dir, possibly on a different partition than your server files are. So this happens when that drive is full. Also, storing sessions in the same directory potentially exposes them to all sites running on the virtual server.
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
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
Weird behaviour with sessions Skeleton Man PHP 1 10-27-04 10:42 PM
what would make sessions not work? o0katz0o PHP 1 04-24-04 11:38 AM
Multiple sessions Kaanha PHP 2 01-16-04 11:39 AM
calendar working until months changed bitesize JavaScript 1 01-13-04 02:50 PM
PHP & sessions, why won't it work? TinnyFusion PHP 1 10-04-03 02:51 PM


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