|
|
|
|
![]() ![]() |
Jan 10 2006, 06:43 PM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 39 Joined: 10-January 06 Member No.: 16,887 |
Ok soo....I have different authentification required areas of a website I'm currently working on, and I'd like to find a way to link to one pass. protected area from another, after someone's already logged in...but each time the Popup window comes up asking for the username and password...anyone know a way around this other than programming a php a java password protection script? I'd really prefer to use the server's method, as it's much more concrete.
I've seen some information about a syntax along the lines of: http://username:password@www.site.com But it doesn't seem to work, and I believe that's really only applicable for ftp use. Maybe I just have the wrong syntax, either way, I'm not sure and could use some help. Thanks a lot!! |
|
|
|
Jan 10 2006, 07:10 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,300 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:46.50 |
I think there is a way to set and check cookies or session_id's using a php script in the password verification part of their first log-in. I am not a php coder, so I am only suggesting an alternative. I've seen some scripts that do that, but I don't have a link to a tutorial for it. sorry.
Then, whenever a user enters a password protected area of your site, check to see if the cookie or session_id has been previously set. If it is good, then bypass the log-in portion of the script. |
|
|
|
Jan 10 2006, 07:28 PM
Post
#3
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 39 Joined: 10-January 06 Member No.: 16,887 |
Do you happen to know if that works alongside the CPanel Authentification? I'm really not sure how CPanel checks it's passwords. That actually might be somethin' good to know, but I haven't found any info on CPanel's Authenification System. Thanks for the suggestion, I'm definitely going to look into that!!
QUOTE(jlhaslip @ Jan 10 2006, 01:10 PM) I think there is a way to set and check cookies or session_id's using a php script in the password verification part of their first log-in. I am not a php coder, so I am only suggesting an alternative. I've seen some scripts that do that, but I don't have a link to a tutorial for it. sorry. Then, whenever a user enters a password protected area of your site, check to see if the cookie or session_id has been previously set. If it is good, then bypass the log-in portion of the script. |
|
|
|
Jan 10 2006, 07:36 PM
Post
#4
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,300 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:46.50 |
Ummm, cpanel has to do with your account here at the trap. I don't think there is anything in cpanel that you can use for the website password thing unless you use cpanel to build a mysql database for that purpose. In any case, the cpanel password should not be confused with the access to a section of your site.
The cpanel password is for YOU to access the cpanel. I guarantee there will be trouble if you give users your cpanel access. they will then be able to add / delete files, change security settings, all kinds of nasty stuff. Do a search for login scripts here on this forum by using the search feature found in the breadcrumb list near the top of every page to see what you can come up with. Here is a link to the search feature: http://www.trap17.com/forums/index.php?act=Search&f=68 |
|
|
|
Jan 10 2006, 09:39 PM
Post
#5
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 39 Joined: 10-January 06 Member No.: 16,887 |
The CPanel's I've used in the past had options to make certain areas of your website "Protected" I figured CPanel was basically the gui and build for online web-editing...
QUOTE(jlhaslip @ Jan 10 2006, 01:36 PM) Ummm, cpanel has to do with your account here at the trap. I don't think there is anything in cpanel that you can use for the website password thing unless you use cpanel to build a mysql database for that purpose. In any case, the cpanel password should not be confused with the access to a section of your site. The cpanel password is for YOU to access the cpanel. I guarantee there will be trouble if you give users your cpanel access. they will then be able to add / delete files, change security settings, all kinds of nasty stuff. Do a search for login scripts here on this forum by using the search feature found in the breadcrumb list near the top of every page to see what you can come up with. Here is a link to the search feature: http://www.trap17.com/forums/index.php?act=Search&f=68 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 02:13 PM |