Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How Can I restrict the page for users like,teacher must enter the paper marks in one month. If he couldn't enter the marks in one month then the session of entering marks should expire.
Posted

1 solution

This is nothing to do with Sessions - sessions should not be maintained for more than twenty minutes, much less a month! (And to maintain a session, the user would have to keep his browser window open for a month - if it is closed a new session will be established when he re-connects).

Instead, look at Cookies - you can set an expiry date on these when you write them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900