I'm new to php, but not to programming, and i'm using very basics of sessions to manage a user being logged into my site. When testing it, everything works until I move away from my site. I would like the session to be destroyed if you navigate away, is there an easy way of doing this without using javascript (i'm trying to make my site javascript-less for those who chose not to have scripts enabled)?
nicolemcgrgr50
0
Newbie Poster
Recommended Answers
Jump to PostThere is no way to detect a user leaving your site without javascript. You can't do it serverside since in they leave they won't be interacting with your server :)
All 2 Replies
ShawnCplus
456
Code Monkey
Team Colleague
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.