Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Sharing cookies
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sharing cookies

 Post Reply Post Reply Page  12>
Author
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Topic: Sharing cookies
    Posted: 12 July 2003 at 8:17am

Is it possible that the cookie created in an IE WILL be available in another (independent) IE?

I created a cookie to login this user in an ASP and if I go to the forums in the same IE or in this IE's child (File->New->Window), the user is logged. If I close this IE or I open a brand new IE... there's no user logged.



Edited by Mc Brain
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 8:42am
As long as the cookie has not expired, it will be available to all windows of the same browser.
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 9:40am
It's set to expire within an year. Any other idea?
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 9:47am
Be sure that your are setting the expiration date correctly.

Response.Cookies(cookienameinquotes).Expires = dategoes here
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 9:49am

I'm using the code bOrg used.

Response.Cookies(cookienameinquotes).Expires = dateadd(year,1  now)

or something like that.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 10:01am
It should be:

Response.Cookies(cookienameinquotes).Expires = DateAdd("yyyy", 1, Now())

If that's what you are using it should be correct.
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 6:04pm
I copied and pasted bOrg's code. I didn't have it at reach then and wrote over the top of my head.
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2003 at 7:03pm

Or:

Response.Cookies(cookienameinquotes).Expires = now()+365

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.