Hi Alberto,
ok, let's follow the thought through a bit.
a) when a session is deleted, you want to dump that session to disk, or a data table, linked to the user name.
b) when the user starts again (with the same sessionID?) it should read that file or data table.
c) you need to store the sessionID between runs of the IDE.
Of course a "session" is a lot more than just session values. Internally there's a SettingsQueue (mostly for forms), a Browse ID Queue (mostly for visible browses), a Channel queue (for websockets) and so on. But I'm guessing you can ignore most of those. Also you probably don't want to fiddle with the SessionQueue itself, just the Session Data queue.
c) is the easiest one to sort out. In the WebServer procedure set the property
s_web.PreserveSessionId = today() + 30
You'll want to update this value every day. This preserves the cookie in the browser for 30 days.
b) You'd add code here to WebHandler, NewSession method, after the parent call.
a) I think here you'd need to be careful. In the webserver, using the critical section (s_web._Wait() and s_web._Release()). Check out the _DeleteSession code in netweb.clw to see what it's doing. You'd embed in the WebServer, before the parent call.
cheers
Bruce