PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Lightweight sessions?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Lightweight sessions?

Réponse
 
LinkBack Outils de la discussion
Vieux 31/03/2008, 17h32   #1
Casimir Pohjanraito
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Lightweight sessions?

I am building a chat for some friends. Philosophy: just for fun.

I am not on rails, nor do I plan on welding any on the simple shared
hosting service that offers ruby 1.8 and eruby.

Anybody seen simple, lightweight session management lib for situation
like this?

, simple authication, thats about it. Something that can tell
serverside forms if user is logged in or not, basically.

I have read about cgi.session, but was wondering if someone has "worked
it further down the line..."

*Any* suggestions on how to approach/do it welcome.

Casimir
csmr.dreamhosters.com
  Réponse avec citation
Vieux 31/03/2008, 19h10   #2
Kyle Schmitt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Lightweight sessions?

If you're not too worried about security, you can always generate a
session similar to the way it's done for a web server (which honestly
is done from the ultra lame to the insanely overly complex). I didn't
notice a session id method in the standard Net/HTTP library, but that
doesn't mean there isn't one.

If you don't want to come up with your own, this article examines how
RoR generates session IDs*. It ends up being very simple, easy to
understand code
http://epsilondelta.net/2006/05/17/e...id-generation/

Good luck.
--Kyle

* Or at least how RoR generated session IDs in 2006.

  Réponse avec citation
Vieux 01/04/2008, 19h08   #3
Robert Klemme
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Lightweight sessions?

On 31.03.2008 20:10, Kyle Schmitt wrote:
> If you're not too worried about security, you can always generate a
> session similar to the way it's done for a web server (which honestly
> is done from the ultra lame to the insanely overly complex). I didn't
> notice a session id method in the standard Net/HTTP library, but that
> doesn't mean there isn't one.


http://ruby-doc.org/stdlib/libdoc/cg...I/Session.html

See http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html

Kind regards

robert
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h32.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09261 seconds with 11 queries