Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
r1114
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
  2 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
 
Scott Merrill  
View profile  
 More options Nov 21 2007, 6:29 pm
From: Scott Merrill <ski...@skippy.net>
Date: Wed, 21 Nov 2007 18:29:35 -0500
Local: Wed, Nov 21 2007 6:29 pm
Subject: Re: [habari commit] r1114

codesite-nore...@google.com wrote:
> First pass Session handler.

Aside from the session table, where is the session handler?  ;)

> +CREATE TABLE {$prefix}sessions  (
> +  session_id INT UNSIGNED NOT NULL auto_increment,
> +  token varchar(255) NOT NULL,
> +  subnet INT UNSIGNED NOT NULL DEFAULT 0,
> +  expires INT UNSIGNED NOT NULL DEFAULT 0,
> +  ua VARCHAR(255) NOT NULL,
> +  data MEDIUMTEXT,
> +  PRIMARY KEY (session_id),
> +  UNIQUE KEY token (token)
>  );

Why did you include a session_id column?  Is that something we're likely
to need?  I think the token should be unique across all sessions, so it
should be the primary key used to select a session from the DB.  Using
session IDs doesn't seem to gain us anything.

Also, I think we should store the user's ID as a distinct column in the
table, so that we can quickly fetch the user with User::get_by_id().

--
GPG 9CFA4B35 | ski...@skippy.net | http://skippy.net/


 
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.
Discussion subject changed to "[habari commit] r1114" by Christian Mohn
Christian Mohn  
View profile  
 More options Nov 21 2007, 6:34 pm
From: "Christian Mohn" <h0b...@gmail.com>
Date: Thu, 22 Nov 2007 00:34:33 +0100
Local: Wed, Nov 21 2007 6:34 pm
Subject: RE: [habari-dev] Re: [habari commit] r1114
svn up -r 1113 saved me ;-)


 
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 »