Professional Web Applications Themes

How to send ASP Session cookies - ASP

Hi all, Anyone know how to send ASP Session cookies like the following: 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/' using WinInet? thanks in advance... -BB...

  1. #1

    Default How to send ASP Session cookies

    Hi all,

    Anyone know how to send ASP Session cookies like the following:
    'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/'
    using WinInet?

    thanks in advance...

    -BB
    Brian Burgess Guest

  2. #2

    Default Re: How to send ASP Session cookies

    Brian Burgess wrote:
    > Hi all,
    >
    > Anyone know how to send ASP Session cookies like the following:
    > 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/'
    > using WinInet?
    >
    > thanks in advance...
    >
    > -BB
    Create a page that sets the cookie and pass the value to the page in the
    WinInet call.

    I've never used WinInet so I can't provide details.

    HTH,
    Bob Barrows


    Bob Barrows Guest

  3. #3

    Default Re: How to send ASP Session cookies

    Hi, Thanks,

    This is exactly what I am wondering how to do...

    Anyone have ideas?

    -BB

    On Sat, 11 Oct 2003 10:26:54 -0400, "Bob Barrows"
    <reb01501NOyahoo.SPAMcom> wrote:
    >Brian Burgess wrote:
    >> Hi all,
    >>
    >> Anyone know how to send ASP Session cookies like the following:
    >> 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/'
    >> using WinInet?
    >>
    >> thanks in advance...
    >>
    >> -BB
    >
    >Create a page that sets the cookie and pass the value to the page in the
    >WinInet call.
    >
    >I've never used WinInet so I can't provide details.
    >
    >HTH,
    >Bob Barrows
    >
    Brian Burgess Guest

  4. #4

    Default Re: How to send ASP Session cookies

    Can't you use a querystring to pass the value to be set to the called page?

    Bob Barrows

    Brian Burgess wrote:
    > Hi, Thanks,
    >
    > This is exactly what I am wondering how to do...
    >
    > Anyone have ideas?
    >
    > -BB
    >
    > On Sat, 11 Oct 2003 10:26:54 -0400, "Bob Barrows"
    > <reb01501NOyahoo.SPAMcom> wrote:
    >
    >> Brian Burgess wrote:
    >>> Hi all,
    >>>
    >>> Anyone know how to send ASP Session cookies like the following:
    >>> 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/'
    >>> using WinInet?
    >>>
    >>> thanks in advance...
    >>>
    >>> -BB
    >>
    >> Create a page that sets the cookie and pass the value to the page in
    >> the WinInet call.
    >>
    >> I've never used WinInet so I can't provide details.
    >>
    >> HTH,
    >> Bob Barrows


    Bob Barrows Guest

  5. #5

    Default Re: How to send ASP Session cookies

    Well I'm not sure .. The called page is looking for the value of a
    Session variable that is set by the calling page. The Client app is
    NOT a browser, but a VB application using WinInet functions. ASP
    Sessions are merely session cookies. Since my app is not a browser,
    I'm pretty sure that I need to set this session cookie manually on the
    called page. However, it seems I'm getting something wrong. Perhaps
    just syntactically, but still when the called page is requested, it
    doesn't have the Session set.


    On Sat, 11 Oct 2003 11:36:39 -0400, "Bob Barrows"
    <reb01501NOyahoo.SPAMcom> wrote:
    >Can't you use a querystring to pass the value to be set to the called page?
    >
    >Bob Barrows
    >
    >Brian Burgess wrote:
    >> Hi, Thanks,
    >>
    >> This is exactly what I am wondering how to do...
    >>
    >> Anyone have ideas?
    >>
    >> -BB
    >>
    >> On Sat, 11 Oct 2003 10:26:54 -0400, "Bob Barrows"
    >> <reb01501NOyahoo.SPAMcom> wrote:
    >>
    >>> Brian Burgess wrote:
    >>>> Hi all,
    >>>>
    >>>> Anyone know how to send ASP Session cookies like the following:
    >>>> 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA; path=/'
    >>>> using WinInet?
    >>>>
    >>>> thanks in advance...
    >>>>
    >>>> -BB
    >>>
    >>> Create a page that sets the cookie and pass the value to the page in
    >>> the WinInet call.
    >>>
    >>> I've never used WinInet so I can't provide details.
    >>>
    >>> HTH,
    >>> Bob Barrows
    >
    >
    Brian Burgess Guest

  6. #6

    Default Re: How to send ASP Session cookies

    Oh. I have to bow out of this. I have no expertise here. Hopefully someone
    els will step in here and bail me out.

    Bob Barrows

    Brian Burgess wrote:
    > Well I'm not sure .. The called page is looking for the value of a
    > Session variable that is set by the calling page. The Client app is
    > NOT a browser, but a VB application using WinInet functions. ASP
    > Sessions are merely session cookies. Since my app is not a browser,
    > I'm pretty sure that I need to set this session cookie manually on the
    > called page. However, it seems I'm getting something wrong. Perhaps
    > just syntactically, but still when the called page is requested, it
    > doesn't have the Session set.
    >
    >
    > On Sat, 11 Oct 2003 11:36:39 -0400, "Bob Barrows"
    > <reb01501NOyahoo.SPAMcom> wrote:
    >
    >> Can't you use a querystring to pass the value to be set to the
    >> called page?
    >>
    >> Bob Barrows
    >>
    >> Brian Burgess wrote:
    >>> Hi, Thanks,
    >>>
    >>> This is exactly what I am wondering how to do...
    >>>
    >>> Anyone have ideas?
    >>>
    >>> -BB
    >>>
    >>> On Sat, 11 Oct 2003 10:26:54 -0400, "Bob Barrows"
    >>> <reb01501NOyahoo.SPAMcom> wrote:
    >>>
    >>>> Brian Burgess wrote:
    >>>>> Hi all,
    >>>>>
    >>>>> Anyone know how to send ASP Session cookies like the following:
    >>>>> 'Set-Cookie: ASPSESSIONIDCSBRSDCT=IOLJEPNDANEDGDFGPEKLNGEA;
    >>>>> path=/' using WinInet?
    >>>>>
    >>>>> thanks in advance...
    >>>>>
    >>>>> -BB
    >>>>
    >>>> Create a page that sets the cookie and pass the value to the page
    >>>> in the WinInet call.
    >>>>
    >>>> I've never used WinInet so I can't provide details.
    >>>>
    >>>> HTH,
    >>>> Bob Barrows


    Bob Barrows Guest

  7. #7

    Default RE: How to send ASP Session cookies

    Hi Brian,

    You may take a look at following platform SDK API, they may help on this
    issue:

    Managing Cookies
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/win[/url]
    inet/managing_cookies.asp

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

Similar Threads

  1. Cookies Vs Session
    By theDude28 in forum Macromedia ColdFusion
    Replies: 5
    Last Post: May 10th, 09:01 PM
  2. loading session from cookies
    By paradox in forum PHP Development
    Replies: 2
    Last Post: June 30th, 08:25 AM
  3. Is it possible to send / receive cookies on an image
    By Dan Anderson in forum PERL Beginners
    Replies: 2
    Last Post: November 19th, 06:28 PM
  4. Session & Cookies
    By Srinivasa Raghavan in forum ASP.NET General
    Replies: 1
    Last Post: August 8th, 01:28 PM
  5. SESSION AND COOKIES
    By RHO in forum PHP Development
    Replies: 0
    Last Post: July 11th, 11:48 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
  •  

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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139