Print Page | Close Window

Login and/with cookies.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4908
Printed Date: 30 March 2026 at 3:03pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Login and/with cookies.
Posted By: Aumuz
Subject: Login and/with cookies.
Date Posted: 10 August 2003 at 10:30am

I am making my own user managment system for my site, and its applications, and I have 3 qustions...

1. I know how to make a database login system (learned from looking at web wiz's ofcoures). I also know how to add cookies to it... But how do I validate them?

The problem is, anyone can change there cookie to say my name and pretend to be me.

2. How can I make multiple user levels?

My idea so far is to make a new feild (both in the db and the cookie) that would have a randomly selected number (EX: 123 for admins, 357 for moderators, 767 for users). Then that would be validated agensts the username, (in the same way as above).

Would this work?

3. How can I display profile information onto things (such as username, locations, interests on a forum post [note:general example]).

Thanks for any help you can give me.




Replies:
Posted By: ljamal
Date Posted: 10 August 2003 at 11:52am
1. You can't manually edit a cookie. It you do the browser will not read it. Try it.

2. It depends on whether you one a single set of permissions per user or a be able to add different permissions to different users. There has to be something that enforces the permissions. I do this with database and with code.

3. Just query the information from the database (assuming the users supplied it)

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Aumuz
Date Posted: 10 August 2003 at 12:44pm
ok, thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net