Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Closed Thread
 
Thread Tools
  #1  
Old 04-20-2004, 03:20 PM
blemming blemming is offline
Hatchling Croc
 
Join Date: Mar 2004
Posts: 3
Default

I am using sessions to secure a section of my site.

The user logs in and a session variable is set:

<? $_SESSION["user"]=array( "name"=>"Mr. Ed", "id" => "1"); ?>

Then on each page I do a

<?
if(!isset($_SESSION["user"])){
echo "<script language=\"javascript\"> window.location = 'login.php'; </script>;
}
?>

The form works fine and then once I'm in the restricted area everything is okay, but I am randomly kicked back out to the log in page.

The variables are being erased without reason?

Any ideas?
  #2  
Old 04-21-2004, 10:40 AM
blemming blemming is offline
Hatchling Croc
 
Join Date: Mar 2004
Posts: 3
Default

there was a problem with the tmp directory.
  #3  
Old 04-26-2004, 05:27 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

blemming, it sounds like you have worked this out, so I am closing this thread. If you have any additional problems, please open a new thread.

-Justin
Closed Thread

Bookmarks

Thread Tools

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Sessions Randomly Lose Variables wisewolfe Pre-Sales Questions 1 08-21-2004 09:55 AM
[Closed] Email Down JWright Shared Hosting Support 12 08-04-2004 04:22 PM
[Closed] Still Waiting... lgsautohits.com Shared Hosting Support 2 06-11-2004 09:43 AM
[Closed] Unable to Access Site via Web, FTP cybrosia Shared Hosting Support 1 06-08-2004 11:23 AM
[Closed] Problems on Porsche amartins Shared Hosting Support 0 06-03-2004 05:30 AM

All times are GMT -5. The time now is 11:05 AM.