Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Сессии пользователя
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gennadij Pastuhov  
View profile   Translate to Translated (View Original)
 More options Mar 12 2011, 4:39 pm
Newsgroups: fido7.ru.cgi.perl
From: Gennadij Pastuhov <Gennadij.Pastu...@f26.n5036.z2.fidonet.org>
Date: Sun, 13 Mar 2011 00:39:50 +0300
Local: Sat, Mar 12 2011 4:39 pm
Subject: Сессии пользователя
Рад всех приветствовать! А особенно - All!

А как сейчас наиболее кошерно делать сабжи? Хочу написать небольшую корзину для
небольшого магазина.

... Jonny wanna live


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry E. Oboukhov  
View profile   Translate to Translated (View Original)
 More options Mar 12 2011, 3:55 pm
Newsgroups: fido7.ru.cgi.perl
From: "Dmitry E. Oboukhov" <Dmitry.E.Obouk...@p100.f830.n5020.z2.fidonet.org>
Date: Sat, 12 Mar 2011 23:55:42 +0300
Local: Sat, Mar 12 2011 3:55 pm
Subject: Re: Сессии пользователя
GP> А как сейчас наиболее кошерно делать сабжи? Хочу написать небольшую корзину
GP> для небольшого магазина.

насколько она небольшая?

мне тут понравился подход Mojolicious: берется перловый объект (один
или несколько) сериализуется, пакуется, base64-ется, затем
подписывается секретным ключем и кладется в куки пользователю.

что прикольно в таком подходе: для многих операций юзера на сайте
можно не делать запросы в БД на тему а авторизован ли он: если в
подписанной куке есть юзерID, то значит авторизован :)

но тут 4К ограничение такой сессии

... Цифровая техника вытесняет аналоговую: цифры лучше букв! (ц)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gennadij Pastuhov  
View profile   Translate to Translated (View Original)
 More options Mar 12 2011, 7:43 pm
Newsgroups: fido7.ru.cgi.perl
From: Gennadij Pastuhov <Gennadij.Pastu...@f26.n5036.z2.fidonet.org>
Date: Sun, 13 Mar 2011 02:43:56 +0300
Local: Sat, Mar 12 2011 6:43 pm
Subject: Сессии пользователя
Рад всех приветствовать! А особенно - Dmitry!

 Суббота марта 12 11 23:55 Dmitry E. Oboukhov писал к Gennadij Pastuhov:

 GP>> А как сейчас наиболее кошерно делать сабжи? Хочу написать
 GP>> небольшую корзину для небольшого магазина.

 DO> насколько она небольшая?

А в чём меряется размер?

 DO> мне тут понравился подход Mojolicious: берется перловый объект (один
 DO> или несколько) сериализуется, пакуется, base64-ется, затем
 DO> подписывается секретным ключем и кладется в куки пользователю.

Шпасиба!

... Jonny wanna live


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dmitry E. Oboukhov  
View profile   Translate to Translated (View Original)
 More options Mar 12 2011, 7:18 pm
Newsgroups: fido7.ru.cgi.perl
From: "Dmitry E. Oboukhov" <Dmitry.E.Obouk...@p100.f830.n5020.z2.fidonet.org>
Date: Sun, 13 Mar 2011 02:18:49 +0300
Local: Sat, Mar 12 2011 6:18 pm
Subject: Re: Сессии пользователя
GP>>> А как сейчас наиболее кошерно делать сабжи? Хочу написать
GP>>> небольшую корзину для небольшого магазина.

DO>> насколько она небольшая?

GP> А в чём меряется размер?

у приведенного мной примера ограничение на размер куков - 4Кб

соответственно если хранить id-шнкии покупок, скажем каждый id
размером по 6 цифр, то получится около 500-600 покупок может совершить
покупатель. а больше - переполнится

DO>> мне тут понравился подход Mojolicious: берется перловый объект (один
DO>> или несколько) сериализуется, пакуется, base64-ется, затем
DO>> подписывается секретным ключем и кладется в куки пользователю.

GP> Шпасиба!

GP> ... Jonny wanna live

... Если женщины на некоторое время умолкнут, то вы сможете услышать страшный
рев Hиагарского водопада


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »