|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I building an online dating agency and although i created my own library and session management, I implemented the site using non persistent session management.
thus, sessions are not saved anywhere, neother i use cookies but due to flexibility i can turn into persistent session management by storing everything in a table in MYSQL. Do you think this appoach is good or do you think that by using server memory that at some point that there will be x amount of users on the server that we might have overload or no more memory to serve the operations of the site? |
|
#2
|
|||
|
|||
|
Hi Neos!
Hum... you idea seens to be very nice, but you'll have the problem that you've reported (server space plus memory), but how are you going to know which session belongs to each user, without using a cookie? You'll keep a record in a database table, but how does it going to recognize the user?
__________________
Regards, Ramiro Varandas Jr. |
|
#3
|
|||
|
|||
|
sessions
hi there,
when i say no cookies i dont mean the cookie made by PHP during runtime, but cookies that we sent to the client during his session. thus i'm based on the session cookie that is created on the sessions folder of php. i tried to incorporate cookies to the client but it did not work although all my configuration is correct. i think that i sent something to the browser before headers are sent . so do you think that i should go with persistence rather than leave it with the sessions alone? that means that every page will be dependednt on the select statements to the sessions table to verify every user. would that not compromise the speed of every page? |
|
#4
|
|||
|
|||
|
I don't know... You try...
You can try measuring time and speed in both methods and see which is better. Although, if you feel more comfortable work with these codes and variables, go foward. Web programming is not only speed and execution time, but the easier way for you to work on it. |
|
#5
|
|||
|
|||
|
yes you are right ramz, test and see,
but hte problem is that i havent done before an applicaiton to incorporate maybe 500 users at the same time so i dont know which is best. i use a function to set tokens once a login is suceeded. there there 5 session variables created. 5 session variables times 500 users would be a server load? ![]() here is the code that i use to set variables once a login has succeeded : PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Pesristent or non persistent sessions? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|