Jump to content

[ASK] HOW to sett session expired??


nicx

Recommended Posts

I have a session like this:

page1.php

<?php
session_start();
$_SESSION['Start'] = 1;
?>

page2.php

<?php
session_start();
if($_SESSION['Start'] != 1){
echo "You ain't suppose to be here";
}
else{
#display page
}
?>

bro,how to write the link to connect page2 with

<? echo "<a href=..."; ?  ?> 

what i must add behind the original url and is the url shown on address bar become http://domain.com/page2.php?sid=xxxx...?

Because i was make sid like that but that not show url like i want that show domain.com/page2.php?PHPSESID=xxxx. How?

And how to sett session expired to 20minutes?

Link to comment
https://forums.phpfreaks.com/topic/111449-ask-how-to-sett-session-expired/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.