[CLOSED] AjaxMethod and Forms authentication

  1. #1

    [CLOSED] AjaxMethod and Forms authentication

    Hello,

    What would be the best way to renew an authentication ticket when using AjaxMethods (in forms authentication with sliding expiration)?

    Regards,
    Tadeusz
  2. #2

    RE: [CLOSED] AjaxMethod and Forms authentication

    Anyone have find a good solution for this problem?

    When the authentication is expired and i start an ajax method or event came out the window error that have my login page as description of the error.

    Any one know how to redirect the expired page to the login page?

    Thanks.
    Last edited by geoffrey.mcgill; Feb 21, 2011 at 8:43 PM.
  3. #3

    RE: [CLOSED] AjaxMethod and Forms authentication

    Redirecting alone is rather easy. This should work: in Page_Load, you can add

    if ( Ext.IsAjaxRequest && !Request.IsAuthenticated )
    {
           // Response.Redirect( "Login.aspx" ); // try using this if below is not working
           FormsAuthentication.RedirectToLoginPage();
    }
    We're actually using only one page, so it get's a bit trickier.
  4. #4

    RE: [CLOSED] AjaxMethod and Forms authentication

    If using v0.8.1, you should be able to call Ext.Redirect.

    Example


    Ext.Redirect("Login.aspx");

    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Forms authentication RedirectFromLoginPage not working
    By CarWise in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 05, 2012, 1:25 PM
  2. [CLOSED] Caching issue when forms authentication is enabled
    By jskibo in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Sep 22, 2009, 12:25 PM
  3. Replies: 4
    Last Post: May 07, 2009, 11:44 PM
  4. Authentication?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Apr 23, 2009, 12:47 PM
  5. [CLOSED] Forms Authentication and Coolite (Ext)
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 04, 2009, 11:18 AM

Posting Permissions