Jump to content
  • Advertisement
Sign in to follow this  
onceloving

[web] PHP SESSIONS

This topic is 4817 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having trouble getting these sessions to write. It doesn't work when I mirror it through a .tk site and use IE. If I open up the page from off the actual server with IE it works fine. If I open up the page from Netscape or Firefox off of the .tk site it works fine. There just seems to be something wrong with opening it off the .tk site and IE. Here is my code. Can anyone help me?
//Just a side note, I call session_start(); at the top of the page

$fname = $row["fname"];
$lname = $row["lname"];
$_SESSION["fname"] = $fname;
$_SESSION["lname"] = $lname;
$account = $_POST["username"];
$_SESSION["user"] = $account;
$_SESSION["login"] = "yes";

Share this post


Link to post
Share on other sites
Advertisement
I just made a test page and I found out that it isn't setting the $_SESSIONs. I also found out that if I manually go to another page not on the .tk site, the .tk site starts working with IE. I think the .tk code is affecting the session_start(). Does anyone have any ideas on how I can fix this?

Share this post


Link to post
Share on other sites
in ie you may have to call header("cache-control: private"); before anything else is done to the page.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!