Jump to content

Session problemo

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Guest_Jaan_*

Guest_Jaan_*
  • Guests
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 :)

#2
Guest_Jaan_*

Guest_Jaan_*
  • Guests
ah i fixed it :)