Jump to content

PHP Sessions - This is my host's problem right???


Pale

Recommended Posts

Hi all,

 

I've run some simple websites on my host for over a year now.  All of the sudden, all of my logins have stopped working.  I've narrowed this down to a session issue and wrote this test script...

 

http://mikegamin.com/temp/sessionTest.php

 

The source code running that test script is echoed out on the page as well so you can all see it.  Basically all it's supposed to do is set and unset a session variable alternating on every refresh.  The session variable never truly gets set though.  Could someone take a look at this and confirm my suspicion that my host is to blame.

 

FYI, this server is running PHP 4, but I don't think that should matter as sessions have been around forever.

 

Thanks in advance for the help.

 

BTW, I've been looking for a good PHP forum and this is my first post here, so I look forward to getting help and helping out as many people as I can in the future.

Link to comment
Share on other sites

If all of your scripts were previously working and you haven't edited them it may have been something your host has changed/updates yes. I suggest you email then and ask them what updates they've undertaken recently.

Link to comment
Share on other sites

Well I managed to temporarily fix this problem by creating a php.ini file to override the default one in all appropriate directories that points session.save_path to a directory i have control over.

 

Hurray i guess. They better fix it properly soon.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.