NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page User System -- Help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-19-2008, 04:51 PM THREAD STARTER               #1 (permalink)
Senior Member
 
-Ray-'s Avatar
Join Date: Jun 2005
Location: Pennsylvania
Posts: 1,839
-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of
 



User System -- Help


what type of system do you use for maniulating your users.

What i mean is, do you use sessions or cookies, or something else. I do not want to use sessions because it is ugly in the url, and cookies because alot of users dont use them. What do you recommend.

I was thinking of using sessions and storing them in a database and having them expire every 1 hour.
__________________
Poker News, articles, discussion
LIKE THIS

Its an iPod, a phone, and an internet communications device.
-Ray- is offline  
Old 07-19-2008, 06:50 PM   #2 (permalink)
Senior Member
 
Dean's Avatar
Join Date: Jan 2007
Location: Melbourne
Posts: 1,714
Dean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud ofDean has much to be proud of
 


Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
I think cookies is the most common but I would like to see what someone more knowledgeable about it has to say.
Dean is offline  
Old 07-19-2008, 10:40 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



sessions are ugly in the url? oh you mean like GET variables... nah i just use a login and then once they login i set $_SESSION vars using session start. and for like "remember me", i use cookies. upon their first page visit, it checks to see if the session is started, if not, it checks for cookies, if cookies exist, the session is started and all the appropriate values are changes from cookies to session so it acts like its just saved session.
nasaboy007 is offline  
Old 07-20-2008, 07:15 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
You don't seem to be understanding sessions properly in PHP.

Depending on how PHP is setup it will use cookies anyway. If PHP is set up the default way then it will make a choice. If cookies are available it will use cookies, if they are not it will use a sess_id in the url's.

If a cookie is used all it stores is the sess_id. The actual data itself is stored in a file on the server. This can be changed to store in a DB if you use session_set_save_handler
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Last edited by Peter; 07-20-2008 at 07:19 AM.
Peter is offline  
Old 07-21-2008, 12:26 PM THREAD STARTER               #5 (permalink)
Senior Member
 
-Ray-'s Avatar
Join Date: Jun 2005
Location: Pennsylvania
Posts: 1,839
-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of-Ray- has much to be proud of
 



anyone have anymorea advice
__________________
Poker News, articles, discussion
LIKE THIS

Its an iPod, a phone, and an internet communications device.
-Ray- is offline  
Old 07-21-2008, 05:38 PM   #6 (permalink)
NamePros Member
Join Date: Sep 2006
Posts: 99
Bruce_KD will become famous soon enoughBruce_KD will become famous soon enough
 



Use php Sessions.
There's just no reason NOT to use them... they're all around the best and easiest way to have someone login to a system like that you'll create.


Bruce
Bruce_KD is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:11 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger