|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Andrew Alakozow 2:5061/29.2 11 Jul 2002 22:55:58 To : Andrey Sapozhnikov Subject : сессии [Was: Открытое пись мо...] -------------------------------------------------------------------------------- Andrey Sapozhnikov wrote to Dmitry Koteroff... AS> Да какая разница сколько? Hаоборот, при такой посещаемости явно можно AS> изыскать ресурсы не только для короткоживущих сессий, но и для AS> постоянных профилей пользователей. кстати, да: [ cut ] My preferred design for this is to set one cookie that lasts forever and serves as a browser ID. If that user logs in, you can associate a user ID with that browser ID, on the server side. You never need to send another cookie after the very first time someone hits your site. If you decide to attach new kinds of state information to the browser, you still don't need to send a new cookie. Many sites need to keep track of state information (like what's in your shopping cart) for anonymous users who haven't logged in. Having this unique browser ID (or session ID, if you prefer to give out a new one each time someone comes to the site) lets you track this for unregistered users. [ cut ] Perrin Harkins <perrin@elem.com>, один из разработчиков E-Toys. чуть ниже в этом сообщении упоминались 2.5M хитов в час %) aa29.2 --- (.) --- * Origin: Зукд ащкумук! (2:5061/29.2) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/27713d2dd714.html, оценка из 5, голосов 10
|