Results 1 to 3 of 3

Thread: How to preserve the cookie

  1. #1
    WilsonMartin is offline Senior Member
    Join Date
    Dec 2009
    Posts
    319
    Rep Power
    3

    Default How to preserve the cookie

    I am working on one banking website. I use a script that is a valuable way is to create a cookie can only be accessed by its domain. That is to say for example, .net.edu.in only have access to .net.edu.in created cookie. Normally, this is not a problem though, if I require 2 different domains of the 2 different sites to share stored in the cookie in the user information, how to handle it? Any help would be highly appreciated .Thanks in advanced.

  2. #2
    AndersonDiaz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    311
    Rep Power
    3

    Default

    I have ASP code to handle cookie for preserve the cookie. It is very helpful for you.

    Code:
    Response.Cookies (“Date"). Expires = Date +365
    Response.Cookies (“MyDomain"). Domain = "mydomaincheck.com"
    Response.Cookies (“Mylogin") ( "login") = string strlogin
    Response.Cookies (“Mypassword") ( "Pass") = string strPassword

  3. #3
    TaylorRyan is offline Senior Member
    Join Date
    Dec 2009
    Posts
    307
    Rep Power
    3

    Default

    To read and write cookie is very easy, the above code to create a cookie and to give cookie settings attributes: domain, expiration time, and other values stored in the cookie. Here, strUsername, strPassword set anywhere in front of the variable.

    Code:
    String datExpDate = Request.Cookies ( "MyCookie123")
    String strDomaln = Request.Cookies ( "MyCookle123"). Domain
    String strUsername = Request.Cookies ( "MyCookle123") ( "Username123")
    String strPassword = Request.Cookies ( "MyCookie123") ( "Password123")

Similar Threads

  1. Comodo has put firewall Internet preserve 4.1.149672
    By SmithJohnson in forum General Internet Terms
    Replies: 0
    Last Post: 06-04-2010, 01:19 PM
  2. Microsoft's supposed 'click launderers' preserve incorruptibility
    By charmie_angle in forum Latest Hardware News
    Replies: 0
    Last Post: 05-21-2010, 06:52 AM
  3. How to Preserve Laptop Battery Life
    By rakelfilip in forum Hardware Jargons
    Replies: 0
    Last Post: 12-24-2009, 05:15 PM
  4. Cookie
    By allster in forum General Internet Terms
    Replies: 0
    Last Post: 03-20-2009, 05:52 AM
  5. Preserve Your E-Mail, With Online Backups
    By neil97 in forum General Internet Terms
    Replies: 0
    Last Post: 08-26-2008, 05:06 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48