How to access sessionid in custom code

0 votes
Is there anyway to access the session id of the user in custom code. I want to perform some business logic in custom code after verifying the sessionid. Or is there anywy I can restrict that the custom code can be executed only if valid session id is available..
asked Jul 15, 2014 in App42 Cloud API-BaaS by ved (11 points)
recategorized Oct 22, 2014 by sushil

1 Answer

+1 vote

You can pass sessionID and username in request and access it in custom code. You can validate sessionId in custom code by calling getSession(username, false) method. If it returns the same sessionId means sessionId is valid, if not menas it is invalid sessionId.

Let me know if it helps.

Thanks

Ajay

answered Jul 15, 2014 by ajay123 (899 points)
Thanks.. It worked..
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...