|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
To me, this seems like it would be a difficult and involved hack. Basically, I'd like to allow my users to pick whether they want to use cookies or sessions. Is this even possible/feasible?
The reason this came up at all was that I have a veteran member who recently enlisted in the Navy. He only has access to shared computers on base, and they are set to not allow cookies. This means he can't post on the site. I switched to sessions to accomodate this, and it works just fine with him.
However, some users have been complaining about having to login to the site all the time now. On the other hand, others like the fact that they don't leave "cookie crumbs" now and have more security because of that (not having to worry about using public computers.)
Anyway, could this idea become a reality?
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Bump? 
|
|
|
|
Joined: Apr 2002
Posts: 102
Journeyman
|
Journeyman
Joined: Apr 2002
Posts: 102 |
That would be a great hack!
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
It shouldn't be to hard to make this, since it's already an admin option to switch between cookies and session mode.
Adding a new filled to the user table and modifing the authentification parts to read from the user table instead of the config option.
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
And I suspect that the login script has to be modified to check if a cookie exists and log in from that (if the user chose the "Remember Me") and in the login process query that field... Hmmm me starts thinking now... but looks at the list of TODO and gets discouraged...  Warm regards Nikos
Nikos
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I believe that .threads uses a session/cookie mix so cookie use is still needed. 
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Yes, .threads uses a cookie to store the session-id and the user-id. Maybe using auto-trans-id or an external session management class can avoid to make many changes to threads... But this would be a bad implementation, i suppose.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Wow, so I created a real brainstormer, eh? Josh came up with a good hack idea! *does the dance of joy* Remember Balky? 
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Any updates? 
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
Not at the moment from me. I have quite a few projects to finish. Sorry... Maybe someone else can pick this up
Nikos
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
I'm afraid there is no quick solution for this. Acchieving the wanted behaviour would at least require heavy changes to several scripts and modifying your php configuration, so that the session-id is handled over automatically. If you can't modify your php configuration, you'll have to append the session-id to every link. So you'll have to modify every single script.
Lot of work for a "little effort", i think. Changing the login/authentication mechanism is more a question of basic software design. In most cases, it's a bad idea to hack that.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
D'oh. Okay. Thanks anyways fellas. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|