+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Session ID

Session ID

4 posts, 0 answered
  1. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    01 Oct 2010
    Link to this post
    I would like to assign a session id to a user whenever he/she login. How do I set it up in Sitefintiy?

    Thanks,
    Pik-Kwan
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Oct 2010
    Link to this post
    Hi Pik,

    The backend login form uses ASP.NET Login control which is declared inside Sitefinity/Login.aspx page. Inside the code behind of this page there is event - Login1_LoggedIn where you could add session variables.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    01 Oct 2010
    Link to this post
    Thanks for the reply. I  would like the session id generate by the system and every time the session id will be different when the user login. Can you please show me an example?

    Thanks,
    Pik
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Oct 2010
    Link to this post
    Hello Pik,

    You could take a look at MSDN and try using Random class.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered