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

Forums / Developing with Sitefinity / sitefinity session out problem for external page.

sitefinity session out problem for external page.

3 posts, 0 answered
  1. humayoo
    humayoo avatar
    89 posts
    Registered:
    25 Oct 2010
    06 May 2011
    Link to this post
    Hi,

    i developed my site using sitefinity 3.7. i have some external page in my site. i also use sitefinity login(admin login) for this pages. when i browse external pages, sitefinity admin login page come, i entered user name and password, i view this external pages. up to this  it is perfect.

    but for external pages automatically session out or lo gout occur after some time(10 to 20 minute) even i am working on this pages. but if i logged in sitefinity admin, then its perfect(this problem will not occur). i am using following code
    //For User Authentication
            MembershipUser user = Membership.GetUser(UserManager.GetCurrentUserName());
            if (user !=null && user.IsOnline)
            {
                if (!(UserManager.IsCurrentUserInRole("Managers") || UserManager.IsCurrentUserInRole("administrators")))
                {
                    string rurl = Request.CurrentExecutionFilePath.Replace("/", "%2f");
                    Response.Redirect("~/Sitefinity/login.aspx?ReturnUrl=" + rurl);
                }
                else
                {
                    Literal1.Text = "User: " + user.UserName+" | ";
     
                }
            }
            else
            {
                string rurl = Request.CurrentExecutionFilePath.Replace("/","%2f");
                Response.Redirect("~/Sitefinity/login.aspx?ReturnUrl=" + rurl);
                 
            }

    provide me any idea or example , how to solve it ?

    thanks
    Humayoo
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 May 2011
    Link to this post
    Hi humayoo,

    Please check if the role cookie gets deleted or application pool is recycled. Another reason would be calling FromsAuthentication - SingOut method, somewhere on your page.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. humayoo
    humayoo avatar
    89 posts
    Registered:
    25 Oct 2010
    06 May 2011
    Link to this post
    hi,

    But when i logged in sitefinity admin UI then logout or session out problem was not occur( means in admin UI ,it is perfect); it is only occur outside the sitefinity folder page.

    thanks
    Humayoo
Register for webinar
3 posts, 0 answered