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
ShawnCplus 456 Code Monkey Team Colleague
Dani 4,310 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.