Intranet Journal

Go Back   IT Management Forum > Intranet Journal

Intranet Journal The new discussion forum for Intranet Journal readers. Leave comments and questions for IJ authors. Suggest story ideas and provide feedback.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2007, 06:40 AM
koitohay koitohay is offline
Registered User
 
Join Date: Sep 2007
Posts: 1
Cms Login Page Stays

I have been reading all the threads related to thsi CMS tutorial. I am unable to solve this problem.

I entered the correct username and pass, but i still see the login screen.

1. i see the access file in the apache log, it doesnt give any error.
2. i see the error file in apache log, nothing there.
3. i have changed the password to MD5 and i have changed the variable to super globals i.e. $_POST etc.

4. i have set my session.save_PATH = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tmp
5. i Can see session saved but it contains nothing inside i.e. 0 kb.

i am using PHP5, Apache 2.2, Win Xp. localhost. see my attached phpinfo and php.ini plzz

Can anybody help me with it. i stuck from last 4 days and i am gonna get crazy now. plzzzzzzzzzzzz help
Attached Files
File Type: txt phpinfo.txt (18.1 KB, 330 views)
File Type: txt phpini.txt (48.9 KB, 311 views)
Reply With Quote
  #2 (permalink)  
Old 09-11-2007, 12:33 PM
bananstat bananstat is offline
Registered User
 
Join Date: Apr 2006
Location: Copenhagen
Posts: 162
Quote:
Originally Posted by koitohay
I have been reading all the threads related to thsi CMS tutorial. I am unable to solve this problem.

I entered the correct username and pass, but i still see the login screen.

1. i see the access file in the apache log, it doesnt give any error.
2. i see the error file in apache log, nothing there.
3. i have changed the password to MD5 and i have changed the variable to super globals i.e. $_POST etc.
And your password in the database also is encrypted with MD5 ?
As well as you have increased the size of the password storage in the database from 20 to 32 ?

Quote:
Originally Posted by koitohay

4. i have set my session.save_PATH = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tmp
5. i Can see session saved but it contains nothing inside i.e. 0 kb.

i am using PHP5, Apache 2.2, Win Xp. localhost. see my attached phpinfo and php.ini plzz

Can anybody help me with it. i stuck from last 4 days and i am gonna get crazy now. plzzzzzzzzzzzz help
How about your MySQL, is it by chance one of the relative recent versions ? and again, have you increased the size of your password storage and have re encrypted your password for this new MySQL ?

Best regards,
bananstat
Reply With Quote
  #3 (permalink)  
Old 09-11-2007, 05:01 PM
Seltaeb Seltaeb is offline
Registered User
 
Join Date: Sep 2007
Posts: 5
I checked it all and i did nothing wrong. Everything is correct. If i login with user: test and pass: test, i go to failed.php if i login with user: test and pass: *test, he refreshes or something, the input fields are empty and i see login.php again. SO i really don't know what it could be, hope you can help!

Bastiaan
Reply With Quote
  #4 (permalink)  
Old 09-12-2007, 03:53 AM
bananstat bananstat is offline
Registered User
 
Join Date: Apr 2006
Location: Copenhagen
Posts: 162
Quote:
Originally Posted by Seltaeb
I checked it all and i did nothing wrong. Everything is correct.
Well, when the code isn't buggy - and it isn't - and you didn't make any mistake, that leaves us with some sort of problem in your setup in regard to this CMS.

Have you tried to run the code under PHP 4.xx and a somewhat older version of MySQL ?, because that would give you an idea if your implementation of the code is working.

Quote:
Originally Posted by Seltaeb
If i login with user: test and pass: test, i go to failed.php if i login with user: test and pass: *test, he refreshes or something, the input fields are empty and i see login.php again. SO i really don't know what it could be, hope you can help!
In such a situation you could resort to plaster your code with echo statements that'll tell you the actual flow in the code and the actual contents in the variables, and that again will give you a precise idea as to what the problem is.

Remember to remove all the echo statements again afterwards.

BTW:
Have you checked if the password in the database = md5('$pass') ?

Have you checked if the names you're using for your tables are the same names in the database and and in your code.

Standard names are:
cmsarticles
cmsgroups
cmssections
cmsusers

Best regards,
bananstat
Reply With Quote
  #5 (permalink)  
Old 11-09-2007, 07:38 AM
Toxitalk Toxitalk is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
Me too

Im having the same issue.

I have dug a little and it is getting to welcome.php.


Its this line thats causing the issue.
if (!$theSentry->checkLogin(2) ){ header("Location: login.php"); die(); }

Where should I look to find the issue.

Many thanks

Quote:
Originally Posted by bananstat
Well, when the code isn't buggy - and it isn't - and you didn't make any mistake, that leaves us with some sort of problem in your setup in regard to this CMS.

Have you tried to run the code under PHP 4.xx and a somewhat older version of MySQL ?, because that would give you an idea if your implementation of the code is working.



In such a situation you could resort to plaster your code with echo statements that'll tell you the actual flow in the code and the actual contents in the variables, and that again will give you a precise idea as to what the problem is.

Remember to remove all the echo statements again afterwards.

BTW:
Have you checked if the password in the database = md5('$pass') ?

Have you checked if the names you're using for your tables are the same names in the database and and in your code.

Standard names are:
cmsarticles
cmsgroups
cmssections
cmsusers

Best regards,
bananstat
Reply With Quote
  #6 (permalink)  
Old 06-14-2008, 08:58 AM
marzar00 marzar00 is offline
Registered User
 
Join Date: Jun 2008
Posts: 22
Check the user group that your user is in. Have a good at increasing the number or try changing your group to a lower (1) number.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 09:59 AM.





Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0