Welcome, Guest. Please Login or Register.
April 27, 2025, 04:00:43 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  General Category  |  Feedback  |  Changing COOKIES to SESSIONS « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Changing COOKIES to SESSIONS  (Read 901 times)
Laban
Noobie
*
Posts: 46


Emperor

ICQ - 14314397
Changing COOKIES to SESSIONS
« on: April 19, 2002, 04:06:44 PM »
Reply with quote

Is there a way to easily change the cookie system that is in the current version to php-sessions? There are people on my forum that are having problems because they can't use cookies where they are. It would be great with a cookie-free forum.

Will this be changed in the next version of YaBB-SE?
Logged

!ERAU QSSI DLRO WEHT
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changing COOKIES to SESSIONS
« Reply #1 on: April 19, 2002, 04:14:02 PM »
Reply with quote

I'm sure there's a way, but I haven't got code for you.

Yes it will be changed.
Logged

Laban
Noobie
*
Posts: 46


Emperor

ICQ - 14314397
Re:Changing COOKIES to SESSIONS
« Reply #2 on: April 19, 2002, 05:00:09 PM »
Reply with quote

I just searched throught the source files and found the string "setcookie" 29 times. It just occured to me that it's pretty much that has to be done to get it to work perfectly without cookies. The setcookie -part is probably the easiest part.

To get it all right, the cookie sessionID should be added to all links (asdf.php?SesID=l234bn32lk4n2) and not stored as a cookie (as many prefers).

Do you have any idea of when a no-cookie version will be released?
Logged

!ERAU QSSI DLRO WEHT
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changing COOKIES to SESSIONS
« Reply #3 on: April 19, 2002, 05:06:16 PM »
Reply with quote

I have no idea about anticipated release dates - we're not close though.  Leave it at that.
Logged

Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:Changing COOKIES to SESSIONS
« Reply #4 on: April 19, 2002, 08:37:43 PM »
Reply with quote

Quote from: Laban on April 19, 2002, 05:00:09 PMDo you have any idea of when a no-cookie version will be released?
If you're going to do sessions, it's not a "no-cookie" thing. It uses cookies if possible, and if not it generates a session id.
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Laban
Noobie
*
Posts: 46


Emperor

ICQ - 14314397
Re:Changing COOKIES to SESSIONS
« Reply #5 on: April 19, 2002, 08:45:57 PM »
Reply with quote

Uhm.... not according to what I have read. Sessions are "serverside-cookies", nothing is stored on the client.
Logged

!ERAU QSSI DLRO WEHT
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Changing COOKIES to SESSIONS
« Reply #6 on: April 19, 2002, 08:47:49 PM »
Reply with quote

The way it works is the server stores the data you want on the server.  BUT it tries to store the session ID in a cookie on the client machine.  If it can't store the cookie, it looks to use the sid as it's passed in the URL.

So while the majority of the data is on the server, it's possible that a sid cookie may be created on the client.
Logged

Laban
Noobie
*
Posts: 46


Emperor

ICQ - 14314397
Re:Changing COOKIES to SESSIONS
« Reply #7 on: April 19, 2002, 08:51:32 PM »
Reply with quote

I see.  ::)
Logged

!ERAU QSSI DLRO WEHT
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Changing COOKIES to SESSIONS
« Reply #8 on: April 19, 2002, 09:10:35 PM »
Reply with quote

In simple terms:

If the cookie works - use it,
if not, then add it on to the end of the url so PHP can access it :)

Best of both worlds :)
Logged

You can't have everything... where would you put it? -- Steve Wright
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Changing COOKIES to SESSIONS « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.029 seconds with 17 queries.