Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 10th, 2003, 01:08 AM
Vantera Vantera is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: South Coast of NSW, Australia
Posts: 108 Vantera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Vantera
Article Discussion: Building a Members Area With PHP: Part 5/6

If you have any questions or comments please post them here.

This forum post relates to this article

Reply With Quote
  #2  
Old January 10th, 2003, 06:00 PM
msmetsers msmetsers is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: netherlands
Posts: 11 msmetsers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Welcome back!

Hv bn ckg the site daily for the follow up.
Thanks,
Martin

ps I'll be back with my stupid questions lateron.....

Reply With Quote
  #3  
Old January 12th, 2003, 05:37 AM
wareseeker wareseeker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 71 wareseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 7 sec
Reputation Power: 6
Question

Hi!

I would like to ask the author of this article or anyone who are learning from this article a question: Is there any register.php file? or the registration.php file to be instead. Because, in the index.php file it has a link that linked to register.php.

Regards,

Reply With Quote
  #4  
Old January 12th, 2003, 05:41 AM
msmetsers msmetsers is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: netherlands
Posts: 11 msmetsers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
register

Yep, tts a small typo, change the link to this file into registration
Martin

Reply With Quote
  #5  
Old January 12th, 2003, 05:50 AM
wareseeker wareseeker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 71 wareseeker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 7 sec
Reputation Power: 6
Thumbs up

Thanks Marty. Have a nice day!

Reply With Quote
  #6  
Old January 12th, 2003, 09:40 PM
kylie kylie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 19 kylie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, that is a typo.

Reply With Quote
  #7  
Old January 16th, 2003, 12:41 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
registration.php ...

also, depending on the version of php you are using <Ben said that he was using version 4.0> you may need to change the way your variables are passed.. ie, turning register global variables off

Reply With Quote
  #8  
Old January 16th, 2003, 08:51 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
im actually using php 4.2.1

Reply With Quote
  #9  
Old January 20th, 2003, 04:43 AM
motorgnom motorgnom is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 motorgnom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
not logging in on index.php without cookies

hi there everybody!!

playing and struggling around with this tutorials for a time now, i´m stucked onto a problem i don´t find any solution for....

i´ve got almost everything working fine right now, i get my records into the tables (users, session, log), but if i try to log in on the index.php with switched off cookies, the page shows me the 'welcome guest'-sentence, instead off my first-and lastname...if i try the isLoggedIn-function on this page, after a sucessful login on the login page (with isLoggedIn-function returning = '1' ), i get return of '0'.

anyone had the same probs? or do have any idea to solve this? perhaps master rowe himself?

help would be very appreciated!!
greetz
holger

Reply With Quote
  #10  
Old January 20th, 2003, 05:15 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Firstly you need to determine what is actually causing the problem. open up the session table, and check if there are actually entries in the database, and also check if they are valid (echo your session_id() and compair to the db)

from there you should have a better idea where to look

Reply With Quote
  #11  
Old January 20th, 2003, 09:06 AM
motorgnom motorgnom is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 motorgnom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
not logging in on index.php without cookies- 2nd

hi ben,

thanx for fast reply....
well, i´ve checked the $session_id on the index.php, and it is a different to the id, which is generated on login.php...it seems to me, that the call of the isLoggedIn-function generates everytime a new session_id....

i´ve tried a lot, but i don´t have any clue to get around this...
thanx again,
holger

Reply With Quote
  #12  
Old January 20th, 2003, 05:30 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Correct me if I'm wrong, Ben, but the session ID shouldn't be different unless they've: A) Logged onto the system from a different computer or B) let their session time expire, right?

Reply With Quote
  #13  
Old January 20th, 2003, 07:03 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Correct me if I'm wrong


Ok, im correcting you. While it is not the norm, some server builds do not actually store the session_id from that computer.

This is why you are getting a different id, and its not logging in.

Try the following to fix the problem. Open up ur php.ini file.

look for "session.use_cookies"

make sure its set to 1

look for "session.auto_start"

turn that to 1

restart your server and try again.

Reply With Quote
  #14  
Old January 20th, 2003, 07:06 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
ok thanks

Only reason why I thought that is because with the configuration Im using the session # never changes until it either expires or I log on with another machine...

Thanks for clarifying it for me

Reply With Quote
  #15  
Old January 27th, 2003, 10:07 AM
DeletedUser DeletedUser is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 DeletedUser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
online.php

hi@all

have i to include "online.php" into the site where i want to use the "who-is-online" - function ?
i tried to include it into index.php but when i load the page i get the following:

"Fatal error: Cannot redeclare class dbVars"

what does this mean ? how can i avoid this mistake ?

hope someone can help me.

cu

Reply With Quote
  #16  
Old January 27th, 2003, 09:24 PM
MacZealot MacZealot is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 MacZealot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
one question.

How do I make a log out link? thus ending the session?

I haven't seen a single thing about this anywhere.

Reply With Quote
  #17  
Old January 27th, 2003, 10:22 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
deleteduser,

try using include_once instead of include to fix your problem.

MacZealot,

this is rather easy, all you have to do is make a link to:

login.php?strMethod=logout

I think thats right?!?!?

Reply With Quote
  #18  
Old January 28th, 2003, 02:45 AM
DeletedUser DeletedUser is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 2 DeletedUser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

thanks a lot.

now it works

i really like your article and can't wait to read the last part.

thx.

Last edited by DeletedUser : January 28th, 2003 at 06:54 AM.

Reply With Quote
  #19