converting cookies into sessions without javascript -


i want use cookie create session expires when user closes browser window. of posts online says way remove expires attribute cookie. tried , did not work.

i have following cookie string:

example=true;path=/ 

note did not set expires attribute.

what happens expires attribute gets set 1 year now.

try setting cookie expires=0.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -