Reading cookies created by CGI program

Discussion in 'Javascript' started by Thomas Theakanath, Aug 23, 2003.

  1. Hi,
    Within client-side Javascript code, I am not able to read cookies set
    by Perl CGI program. Is that normal? Could I change anything in the
    way cookies are set from the CGI program to be able to read them later
    in Javascript?

    Thanks
    Thomas.
     
    Thomas Theakanath, Aug 23, 2003
    #1
    1. Advertisements

  2. "Thomas Theakanath" <> schreef in bericht
    news:...
    > Hi,
    > Within client-side Javascript code, I am not able to read cookies set
    > by Perl CGI program. Is that normal? Could I change anything in the
    > way cookies are set from the CGI program to be able to read them later
    > in Javascript?
    >


    The CGI script should create a domain cookie with the 'domain=.domain.com'
    parameter and your script should run on the same domain as specified by this
    parameter for this to work for you.


    JW
     
    Janwillem Borleffs, Aug 23, 2003
    #2
    1. Advertisements

  3. I tried it; but doesn't seem to work. Is there any resources available
    on the net to know more about this requirement?

    "Janwillem Borleffs" <> wrote in message news:<3f474993$0$28907$>...
    > "Thomas Theakanath" <> schreef in bericht
    > news:...
    > > Hi,
    > > Within client-side Javascript code, I am not able to read cookies set
    > > by Perl CGI program. Is that normal? Could I change anything in the
    > > way cookies are set from the CGI program to be able to read them later
    > > in Javascript?
    > >

    >
    > The CGI script should create a domain cookie with the 'domain=.domain.com'
    > parameter and your script should run on the same domain as specified by this
    > parameter for this to work for you.
    >
    >
    > JW
     
    Thomas Theakanath, Aug 27, 2003
    #3
    1. Advertisements

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. Alex Nitulescu

    Response.Cookies vs Request.Cookies

    Alex Nitulescu, Feb 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    9,385
    Hans Kesting
    Feb 3, 2005
  2. Andy Fish
    Replies:
    3
    Views:
    6,864
    Fredrik Lindner
    Nov 6, 2003
  3. user
    Replies:
    3
    Views:
    850
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 31, 2007
  4. _Who
    Replies:
    7
    Views:
    3,151
  5. Mr I
    Replies:
    13
    Views:
    494
  6. Replies:
    12
    Views:
    618
    alpha_beta_release
    Aug 28, 2006
  7. Praki

    Reading files created by CGi

    Praki, Jan 3, 2008, in forum: Perl Misc
    Replies:
    1
    Views:
    177
    RedGrittyBrick
    Jan 3, 2008
  8. Replies:
    6
    Views:
    300
    Peter Makholm
    Feb 10, 2010
Loading...