I'm building an application that i need people to logon in order for them to view specific pages.

not a problem with that.

but what if they bookmark those pages?

how do i create a cookie in javascript that expires when they end the session or close the browser?

I doesn't need to be complex.

thanks for any tips or suggestions!