Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009

    Unhappy E72 ASP.NET Authentication misbehaving


    I went through the process of building an ASP.NET authentication process (login, sample home page and web.config - all pasted below) and it appears that Nokia misbehaves ...

    ...I had no problem getting cookie authentication to work in Netfront, Safari, Firefox, Blackberry 8830, Android, etc., but Nokia E72 native browser does not appear to respect the login cookie ...

    Our UX goal is not have the user key in user name and password over and over again. Ideally we'd like to expire the login Cookie twice a month like Mobile Gmail.

    Anyone have code same they can share.

    Mucho Thanko - clive

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title>Synergy Web Home Page</title>
    Sample Home Page

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
    protected void login_Click(object sender, EventArgs e)
    // This should be changed to AD authentication
    if (0 == string.Compare(password.Text,"password"))
    FormsAuthenticationTicket tkt;
    string cookiestr;
    HttpCookie ck;
    // Change the parameter for DateTime.Now.AddMinutes to AddDays as desired
    tkt = new FormsAuthenticationTicket(1, username.Text, DateTime.Now,
    DateTime.Now.AddMinutes(1), true, "");
    cookiestr = FormsAuthentication.Encrypt(tkt);
    ck = new HttpCookie(FormsAuthentication.FormsCookieName, cookiestr);
    ck.Path = FormsAuthentication.FormsCookiePath;

    string strRedirect;
    strRedirect = Request["ReturnUrl"];



    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title>Synergy Web Login Page</title>
    <form id="form1" runat="server">
    <asp:TextBox id="username" Text="" runat="server"/><br/>
    <asp:TextBox id="password" TextMode="password" runat="server"/><br/>
    <asp:Button ID="btnShowInfo" runat="server" Text="login"
    onclick="login_Click" />

    <?xml version="1.0" encoding="utf-8"?>
    <authentication mode="Forms">
    <forms name=".ASPXFORMS" loginUrl="login.aspx"
    protection="All" path="/" timeout="1" />
    <deny users="?" />
    <sessionState cookieless="true" />

  2. #2
    Registered User
    Join Date
    Feb 2008
    India, Nashik

    Re: E72 ASP.NET Authentication misbehaving

    Make sure that cookies are enabled in the browser settings.


Similar Threads

  1. Replies: 9
    Last Post: 2010-11-11, 10:29
  2. "Hybrid" authentication für ISAKMP (IPSec-based VPN)
    By mh3 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2010-02-05, 19:53
  3. rtsp Authentication
    By muntain in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2009-06-22, 13:19
  4. Authentication for DM Client on Nokia 7610
    By jclaudius in forum OMA DM/DS/CP
    Replies: 2
    Last Post: 2004-07-27, 13:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts