Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

- - - - -

Session problemo

session

  • Please log in to reply
1 reply to this topic

#1 Guest_Jaan_*

Guest_Jaan_*
  • Guest

Posted 05 March 2008 - 01:27 PM

okay i have little problemo..

here's one line from my index.php
session_register("logged-in", "true");


and here's my admin.php's lines:

session_start();
$ses = $_SESSION['logged-in'];
if(!isset($ses) or $ses != "true"){
echo "<script type='text/javascript'>
<!--
window.location = 'index.php'
//-->
</script>";
}


i have no idea why it redirects me back to index.php
maybe you can help me :)
  • 0

#2 Guest_Jaan_*

Guest_Jaan_*
  • Guest

Posted 05 March 2008 - 02:23 PM

ah i fixed it :)
  • 0





Also tagged with one or more of these keywords: session

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download