Atozed Forums
Custom content handler with session - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Custom content handler with session (/thread-3746.html)



Custom content handler with session - giorgio_c - 01-03-2024

I've a custom content handler.
Its path is: /file?fn=<filename>
The web page calls this URL: localhost:8888/file?fn=test.pdf
The content handler have to check if the user i logged.
On the first call, the URL is: localhost:8888 and the server respond with a login page, if user/pwd match then che user session has a "logged" property set to "true".
The URL now is: http://localhost:8888/8FRhd~Z~mBGZQR9kQSqmE4EoXMm (the session ID is in the URL).
Then, a new page can fetch the special URL localhost:8888/file?fn=test.pdf (i do no put any session ID here, or I have to do this? Where can I find che current session ID client side javascript?), and now the content handles must check UserSession.logged property. But I get always "false" here.
How can I check for the current user session data?
Thanks.