Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Login cookie
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Login cookie

 Post Reply Post Reply
Author
dotcom View Drop Down
Newbie
Newbie


Joined: 11 August 2011
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotcom Quote  Post ReplyReply Direct Link To This Post Topic: Login cookie
    Posted: 01 December 2011 at 12:41pm
I'm integrating a DotNetNuke site with WebWiz so that when a user logs on to DNN, they are automatically logged on to WebWiz.

When the user logs in, I am use the HttpXmlApi to retrieve the login cookie data, and attaching it to the Request.Response.Cookies collection. This functionality is working correctly, and I have verified that after logging in, a cookie with name wwf10sLID is present with a value in format
NS=0&UID=testuser101-7A5E-961-124F-5D84. This mimics what happens when the user actually logs in directly to the forum. 
Both the forum and the DNN site share the same domain, so the cookie should be accessible by both sites.

However when I navigate to the forum after logging in to DNN, the forum does not show the user as logged in, as I would expect.

Have I missed something here?

Help appreciated with this.

Regards,

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2011 at 2:19pm
Not sure what cookie prefix you have given your forum, but the default is 'wwf10' not 'wwf10sLID'.
Back to Top
dotcom View Drop Down
Newbie
Newbie


Joined: 11 August 2011
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotcom Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2011 at 2:57pm
The cookie prefix is configured as wwf10, but the authentication cookie (as far as I am aware) has the name wwf10sLID. Is that not the case?
Back to Top
dotcom View Drop Down
Newbie
Newbie


Joined: 11 August 2011
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotcom Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2011 at 3:00pm
What I did was to log on to the forum normally, and inspect the login cookie. I then programmatically create a similar cookie using data retrieved from the HttpXmlApi and attach it to the response, when the user logs in to DNN.
Back to Top
dotcom View Drop Down
Newbie
Newbie


Joined: 11 August 2011
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote dotcom Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2011 at 3:29pm
It's OK, I have solved the problem. Thanks.
Back to Top
 Post Reply Post Reply

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.