Discussion Board

Results 1 to 4 of 4

Thread: Log In Set Up

  1. #1
    Registered User
    Join Date
    Jan 2007

    Log In Set Up

    I have a WAP version of a site with a log in page. Now what I am looking for is a way to prevent log in eveytime by the user, if they log in once, can i set some sort of cookies on their mobile phone so that when they access the page again they dont have to log in. Some sort of unique identifier or cookie???? Any pointers or suggestions would be appreciated. Thanks.

  2. #2
    Registered User
    Join Date
    Mar 2003

    Re: Log In Set Up

    yes, you can use cookies, but not all mobile browsers support them or the user can them disabled. That's why you need some error checking (see below)

    Basically what you do is in the page where you've verified the first login correctly, then execute these statements:

    ' save cookies for next login
    on error resume next
    if strPinSave="on" then
    response.cookies("password")= strPassword
    response.cookies("username")= strUsername
    response.cookies("password")= ""
    response.cookies("username")= ""
    end if
    response.cookies("username").Expires= Date+365
    response.cookies("password").Expires= Date+365
    on error goto 0

    On the page where you prompt for the username and/or password (homepage) include this:

    ' use strUsername and strPassword as default in the value='' statements of your <input> tags
    on error resume next
    strUsername= request.cookies("username")
    strPassword= request.cookies("password")
    on error goto 0

  3. #3
    Registered User
    Join Date
    Jan 2007

    Thumbs up Re: Log In Set Up

    Thanks a lot. That was of great help.

  4. #4
    Registered User
    Join Date
    Jun 2007

    Cookies not supported on Nokia E61 S60 3rd Edition


    I have Nokia E61 with S60 3rd Edition environment. When I access a page of a website, it sets cookies to maintain session. With Nokia E61 when I access this web site, cookies are not avaiable in S60 3rd. ED environment.

    In order to check the existance of cookies I used following javascript code:


    It does not show any cookie information. But when I access the same using opera browser on the same device, all cookies are available.

    I also saw the HTTP header information using Firfox browser, cookie details are available in the HTTP Header.

    I want to know that is there any issue with S60 3rd ED browser related to cookies or there is any other ways the set the same so that it can available to Nokia E61 S60 3rd Edition web browser?

    Any suggestions would be appreciated.

Similar Threads

  1. Set Exif Gps Info Latitude.
    By shashishaw in forum Symbian
    Replies: 15
    Last Post: 2009-03-24, 16:50
  2. When can you set the screensaver's Refresh Timer Value?
    By azhrei in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2008-08-23, 10:12
  3. Log Deletion ::CLogClient
    By yogesh.bhople in forum Symbian
    Replies: 8
    Last Post: 2006-11-18, 10:19
  4. Replies: 12
    Last Post: 2003-10-28, 06:15
  5. Use Sim Service Set or Sms Service set for SMS access
    By mkroll in forum Multimodecards
    Replies: 3
    Last Post: 2003-05-12, 09:21

Posting Permissions

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