[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 07-19-2008, 03:51 PM   #1 (permalink)
An American Soldier
 
-Ray-'s Avatar
 
Join Date: Jun 2005
Location: Pennsylvania
Posts: 1,630
2.53 NP$ (Donate)

-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold


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.
__________________
Completely Free cPanel Hosting
-- Deployed to Afghanistan --
"There is no such thing as rich over-night unless you owned Google stock in 2006"
-Ray- is offline  
Old 07-19-2008, 05:50 PM   #2 (permalink)
Senior Member
 
Dean's Avatar
 
Join Date: Jan 2007
Location: Melbourne
Posts: 1,669
808.05 NP$ (Donate)

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.
__________________
Register Domains
Random Generator
Dean is offline  
Old 07-19-2008, 09:40 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

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 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, 06:15 AM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

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 06:19 AM.
Peter is offline  
Old 07-21-2008, 11:26 AM   #5 (permalink)
An American Soldier
 
-Ray-'s Avatar
 
Join Date: Jun 2005
Location: Pennsylvania
Posts: 1,630
2.53 NP$ (Donate)

-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold-Ray- is a splendid one to behold


anyone have anymorea advice
__________________
Completely Free cPanel Hosting
-- Deployed to Afghanistan --
"There is no such thing as rich over-night unless you owned Google stock in 2006"
-Ray- is offline  
Old 07-21-2008, 04:38 PM   #6 (permalink)
NamePros Member
 
Join Date: Sep 2006
Posts: 87
100.00 NP$ (Donate)

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

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:12 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85