ITCN ASP.NET Discussion Forum

Deleting Users

Share/Bookmark: Add this Thread to Digg Digg   Add this Thread to StumbleUpon Stumble Upon   Add this Thread to Del.icio.us Del.icio.us   Add this Thread to Reddit Reddit   Add this Thread to Facebook Facebook
RE: Deleting Users
by bwise on Fri, Apr 8 2005 3:32 PM
Good idea, Tony, thanks for pointing that out!
ITCN NJ Web Design and Marketing is a web design and application programming firm located in Morristown, New Jersey.
bwise
bwise
Joined: Sat, Sep 18 2004
Location: Morristown, NJ
Posts: 363
Deleting Users
by Tony on Fri, Apr 8 2005 12:26 PM
I noticed that if a user has a cookie on their machine when an administrator deletes them, that user will then get an error if they go to Your Profile because the code finds the cookie on the machine and goes to look into the DB. It doesnt return anything and then tries to use the length function on an empty string thus returning an error. It should probably check the row count of the query to see if a user is returned at all. If there are no rows, it should delete the cookie and kick to the register page (atleast thats my opinion)
Tony
Tony
Joined: Sat, Nov 20 2004
Posts: 11