Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2006, 08:52 AM
Authorized User
 
Join Date: May 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default WebShop (Chap 9) Question about Login

I have worked with the WebShop and modified it to meet my requirements (it's great I have to say).

One problem I have if that on the Login screen the "Remember me" does not work. Don't even get a cookie created!!

ANY IDEAS?

Stuart.

 
Old October 18th, 2006, 02:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Stuart,

You can change the <authentication> element in the web.config from this:

<authentication mode="Forms"/>

to

<authentication mode="Forms">
  <forms timeout="4320" />
</authentication>

This sets a timeout (in minutes) of 3 days (3 * 24 * 60). For more info about the forms authentication, take a look here:

http://support.microsoft.com/Default.aspx?id=910443

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Atmosphere by Joy Division (Track 3 from the album: Heart And Soul (CD 2)) What's This?
 
Old October 19th, 2006, 04:03 AM
Authorized User
 
Join Date: May 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Having changed this parameter the site is still not saving the Login information. A Cookie is created when the user logs in but then is removed when they log out, very strange must be something in my config. I'll take a look, but proberly will be back...

 
Old October 19th, 2006, 04:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What do you mean with "when they log out"? When you close the browser of when you explicitly log out?

In the first case, the cookie should stick. In the second case, it makes sense the cookie is destroyed. Otherwise, you wouldn't be able to ever log out again.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Design Question about WebShop learningASP.Net BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 8 August 9th, 2007 01:05 AM
WebShop (Chap 9) Question SDonnelly BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 18 May 23rd, 2006 11:33 AM
chap 2......login problem jccheah BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 8 June 17th, 2005 03:05 AM
Login Question Ben Horne Forum and Wrox.com Feedback 10 May 5th, 2004 01:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.