Mobile Login Problem

Discussion in 'ASP .Net Mobile' started by Tan via .NET 247, Mar 11, 2005.

  1. Hello All
    have one problem
    <code>
    if(IsAuthenticated(txtUsername.Text, txtPassword.Text))
    {
    FormsAuthentication.SetAuthCookie(txtPassword.Text, false);
    MobileFormsAuthentication.RedirectFromLoginPage(txtUsername.Text,true);
    }
    </code>

    but when i try make test of login in WinWAP 3.1 then i have catch error Redirection has occured on POST method.

    in real mobile device i have many times redirection

    thanks

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>d97SH+Jt9UOvvwZSUbEXZQ==</Id>
    Tan via .NET 247, Mar 11, 2005
    #1
    1. Advertising

  2. > Hello All
    > have one problem
    > <code>
    > if(IsAuthenticated(txtUsername.Text, txtPassword.Text))
    > {
    > FormsAuthentication.SetAuthCookie(txtPassword.Text, false);
    > MobileFormsAuthentication.RedirectFromLoginPage(txtUsername.Text,true);
    > }
    > </code>
    >
    > but when i try make test of login in WinWAP 3.1 then i have catch error
    > Redirection has occured on POST method.
    >
    > in real mobile device i have many times redirection
    >
    > thanks


    Forms Authentication uses cookies to store user credentials. In a WAP device
    you cannot store cookies. I think then that you should think of some other
    authentication scheme.

    Wiktor Zychla
    Wiktor Zychla, Mar 16, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zahoor
    Replies:
    1
    Views:
    783
    Darryl L. Pierce
    Nov 15, 2003
  2. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Non "mobile" controls on Mobile ASPX

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Aug 17, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    645
    Steven Cheng[MSFT]
    Aug 20, 2007
  3. chen selina
    Replies:
    0
    Views:
    1,227
    chen selina
    Jul 13, 2010
  4. Ryan Malone
    Replies:
    0
    Views:
    149
    Ryan Malone
    Aug 23, 2004
  5. Yaiz
    Replies:
    0
    Views:
    164
Loading...

Share This Page