Hello friends..
I want to destroy the session when user click on Back button or browser... is it part of Javascript or Php..?

i think its just a small Query..!!

Thank u..!! :)

Recommended Answers

All 2 Replies

in your body tag, use OnUnload= to call a function that if back was pressed, call some ajax code that will destroy the session.

Hello,

Tell me please kay why you want to use it that way?

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.