Print Page | Close Window

What section of code validates logins?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15103
Printed Date: 13 April 2026 at 1:46am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: What section of code validates logins?
Posted By: ramone_johnny
Subject: What section of code validates logins?
Date 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



Replies:
Posted By: WebWiz-Bruce
Date Posted: 16 May 2005 at 4:58am
The code that sees if a user is logged in is within the common.asp file

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ramone_johnny
Date Posted: 16 May 2005 at 6:44pm
Umm, could you be a little more specific?
 
John


Posted By: ramone_johnny
Date 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


Posted By: ramone_johnny
Date 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


Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: sfd19
Date 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: http://www.studentsfordemocracy.net - StudentsforDemocracy.net


Posted By: ramone_johnny
Date 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.


Posted By: dj air
Date Posted: 17 May 2005 at 7:07pm
you may want ot take a look at breathofair login manager.

it intergrates with Web Wiz Forums and creates a site portal.

it cross updates eachother with relavent details once logged into one your into both.

www.breathofair.co.uk/asp/applications



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