Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom content handler with session
#1
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)