Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Login and/with cookies.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Login and/with cookies.

 Post Reply Post Reply
Author
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Topic: Login and/with cookies.
    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.

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: 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)
Back to Top
Aumuz View Drop Down
Groupie
Groupie
Avatar

Joined: 14 March 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aumuz Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2003 at 12:44pm
ok, 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.