Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - What section of code validates logins?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

What section of code validates logins?

 Post Reply Post Reply Page  12>
Author
ramone_johnny View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramone_johnny Quote  Post ReplyReply Direct Link To This Post Topic: What section of code validates logins?
    Posted: 16 May 2005 at 4:52am
Im customizing the webwiz forum and would like to create an include file that contains only the code required that checks to see whether the user is logged in on other pages within my site. (Outside that of the forum)
 
Im currently using the webwiz login page.
 
Anyone?
 
John
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: 16 May 2005 at 4:58am
The code that sees if a user is logged in is within the common.asp file
Back to Top
ramone_johnny View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramone_johnny Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2005 at 6:44pm
Umm, could you be a little more specific?
 
John
Back to Top
ramone_johnny View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramone_johnny Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2005 at 7:15pm
Ive tried adding the include file 'common.asp' but get this odd error?
 
Microsoft JET Database Engine error '80004005'

Could not use ''; file already in use.

/longlostfriends/forum/common.asp, line 260

Any suggestions?

John
Back to Top
ramone_johnny View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramone_johnny Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2005 at 3:57am
Im really beginning to become dissapointed with the level of support on this site.
 
Such a shame really as the board is quite impressive.
 
Again, what is the absolute minimum code required on a blank asp page to validate as to whether or not the user is logged in?
 
Thank you,
John
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: 17 May 2005 at 4:52am
Sorry you feel that way, but I do have to work, as well as sleep at some time and your questions came in after 11pm UK time last night when I would have been a sleep.

If you have a look in the mods and add-ons forum other users have already written mods that do what you require.

The common.asp file does allot, not just the login part for the forum, so just trying to place that file into your own will not work.

You need to look through fro the part that checks the user is logged in. The code is commented on every line to tell you what it does to make this type of thing easier.

The basic princiable of the login system is that in the database there is a field call 'user_code' in the table tblAuthor. This user code is also stored in a cookie on the users machine.

To check the user is logged in and who they are, the cookie is read in from the users machine and then is used to get the users details from the database by matching up the cookie with the user_code field.
Back to Top
sfd19 View Drop Down
Senior Member
Senior Member


Joined: 20 December 2004
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfd19 Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2005 at 2:41pm
Originally posted by ramone_johnny ramone_johnny wrote:

Im really beginning to become dissapointed with the level of support on this site.
 
Such a shame really as the board is quite impressive.
 


100% disagreed. Borg as well as the moderators and members here are providing outstanding support and help. Especially their patience is stunning.

Also asking for help for a mod does not qualify as a common support request for WWF and should have been posted in Mod forum. Borg's time is much better spent on developing version 8 instead of providing help for individual modifications that are of no use for anybody else.

Just my 2 cents.
Politics, economy & social issues: StudentsforDemocracy.net
Back to Top
ramone_johnny View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramone_johnny Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2005 at 6:47pm
Fair enough. Perhaps I should apologise, as I did respond on that after having bashed away on this keyboard here trying to get it working for hours on end without any luck.
 
Ill take a look in the mods and add ons section....
 
Thanks.
Back to Top
 Post Reply Post Reply Page  12>

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.