search for: session_id

Displaying 20 results from an estimated 258 matches for "session_id".

2006 Mar 09
2
turn off auto increment
Hello, I have an old table that handles sessions. the primary key is a field called session_id and is the actual session id like "8df838303ufdfu838" however when i do the following in the model: set_primary_key "session_id" and the following in the controller: @session_hash = { "session_id" => @session.session_id, "session_user_id" => @entry...
2006 Apr 29
5
Getting Session ID
I thought I understood how to grab the session id but in the following code I am getting null for the session id: @foo = Foo.new(:session_id => session[:session_id], :test_id => @test.id) -- Posted via http://www.ruby-forum.com/.
2006 Oct 17
6
Session access interfers with other model access
...d, AS LONG AS I don''t try to access the Session model. With the Session model access commented out as below, the Emrec record gets deleted. If I uncomment those lines, the Emrec record is _not_ deleted. Any idea what I''m doing wrong? Thanks, Bill In my controller... @session_id = session.session_id session[:job_key] = MiddleMan.new_worker(:class => :foo_worker, :args => {:emrec_id => @emrec.id, :session_id => @session_id}) In my worker... def do_w...
2006 Apr 25
5
Authorisation question
My authentication (signup/login) is up and running in my app, now I need to implement an authorisation system. Its not going to be a complex one. One admin (me) and then normal members and premium members. Any tutorials or tips on a simple way to get this running? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
2
session_id
Hi I would like to set my own session_id instead of a md5 value. Any ideas? Thanks Seb
2006 Dec 27
3
ARSession Woes!
I''m having an issue with ARsessions... I have a rails app AND a merb app both under the same domain... I have redirects working for this to be seamless... however, the session started on merb is different than the session started in the rails app... like so.. http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y Any ideas why? The only difference I see, but dunno where to change this, is
2010 Jun 08
1
session_options[:secure] resets session_id on every request
I''m working on an ecommerce site (in Rails 2.3) and I added: ActionController::Base.session_options[:secure] = true to ~/config/environments/production.rb Now, every time I add something to my shopping cart and navigate away I get a new session_id (which essentially empties my shopping cart). How can I get the continuity of my sessions back, while still having the session_id get set over a secure connection? I''ve attached my ~/config/environment.rb and here is my ~/config/environments/production.rb # Settings specified here will...
2006 May 23
2
additional fields in session DB table
...s fine. I am integrating it with phpbb however so i need some extra fields populated in the session table. In application.rb i put a before_filter to update the session table I have a model for the sessions $ more app/models/session.rb class Session < ActiveRecord::Base set_primary_key "session_id" set_table_name "phpbb_sessions" end and a before_filter: session_hash = { "session_user_id" => @entry.user_id, "session_ip" => encode_ip, "session_time" => Time.now , "session_logged_in" => 1} @tmpsess = Session.find_by_session_id...
2011 Sep 22
2
Numbering entries for each subject
...sired result? Many thanks in advance Toni A <- data.frame(ID=c('A','A','A','A','B','B','B', 'C','C','C','C','C')) ID 1 A 2 A 3 A 4 A 5 B 6 B 7 B 8 C 9 C 10 C 11 C 12 C A$Session_ID <- 0 previous_ID <- '' current_index <- 1 for ( i in seq(1,nrow(A)) ) { if (A$ID[i] != previous_ID) {current_index <- 1} A$Session_ID[i] <- current_index previous_ID <- A$ID[i] current_index <- current_index + 1 } ID Session_ID 1 A 1 2 A...
2006 Mar 15
3
[login_generator] implementing login limits
I have a simple Rails app that I am close to deploying on our intranet. The security model is "either you are an admin or your are not," with the method of implementing this model being done by the login_generator 1.1.0. There is one account set up, ''admin'', with three of us having the ability to logon with this username (i.e. we know the password). I am looking to
2010 Jun 29
0
Rails session_id is not unique
We have been experiencing an issue in our environment (Jruby 1.4, Rails 2.3.5, Tomcat 5.5, Java 1.6) where duplicate session_ids are being created in the sessions table. We are assuming the only way this can happen is when 2 sessions are created at the exact same time on 2 different machines (we have 10 app servers running with config.threadsafe! on). Has anyone encountered this issue? It seems the "randomness"...
2016 Nov 28
1
[PATCH v3] crypto: add virtio-crypto driver
..., then the below will be racy as it might overwrite > new result with previous data. > Was going to object on this too but Michael was faster. Halil >>> > > + spin_lock(&ctx->lock); >>> > > + if (encrypt) >>> > > + ctx->enc_sess_info.session_id = >>> > > + le64_to_cpu(vcrypto->input.session_id); >>> > > + else >>> > > + ctx->dec_sess_info.session_id = >>> > > + le64_to_cpu(vcrypto->input.session_id); >>> > > + spin_unlock(&ctx->lock); >>&...
2016 Nov 28
1
[PATCH v3] crypto: add virtio-crypto driver
..., then the below will be racy as it might overwrite > new result with previous data. > Was going to object on this too but Michael was faster. Halil >>> > > + spin_lock(&ctx->lock); >>> > > + if (encrypt) >>> > > + ctx->enc_sess_info.session_id = >>> > > + le64_to_cpu(vcrypto->input.session_id); >>> > > + else >>> > > + ctx->dec_sess_info.session_id = >>> > > + le64_to_cpu(vcrypto->input.session_id); >>> > > + spin_unlock(&ctx->lock); >>&...
2005 Aug 06
2
Problem with 0.13.1 ActiveRecordStore with PG 8.0.3.
...KQHVzZWR7AA== '')> I create the session table using the CGI::Session::ActiveRecordStore::Store.create_table! method, and it looks like this: Table "public.session" Column | Type | Modifiers ------------+---------+----------- id | integer | not null session_id | text | data | text | Indexes: "session_pkey" PRIMARY KEY, btree (id) "session_session_id_key" UNIQUE, btree (session_id) Does anyone have insight into what''s going on here? I was getting this problem in a app I was migrating from 0.12, but I c...
2008 Dec 25
2
Switching to active_record_store session management errors out
...ESSION) and Oracle didn''t like that name. I searched the internet and found a sample where the table name was plural (SESSIONS), so I made the change hoping for the best. Here is the SQL generated: CREATE TABLE "SESSIONS" ( "ID" NUMBER(38,0) NOT NULL ENABLE, "SESSION_ID" VARCHAR2(255) NOT NULL ENABLE, "DATA" CLOB, "CREATED_AT" DATE, "UPDATED_AT" DATE, PRIMARY KEY ("ID") ENABLE ) / CREATE INDEX "INDEX_SESSIONS_ON_SESSION_ID" ON "SESSIONS" ("SESSION_ID") / CREATE INDEX "IND...
2006 May 24
1
Authentication between Instiki and Mailman Solved!
...o the following. # app/controllers/wiki_controller.rb cookies[''ldap_username_2006''] = {:value =>emailaddress, :expires =>30.days.from_now, :domain => ''.example.com'' } cookies[''session_id''] = {:value =>session.session_id, :expires =>30.days.from_now, :domain => ''.example.com'' } This had the effect of allowing the cookie to be read by all subdomains which is completely fine....
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
...com and then revisit myapp.com/foo the rails2 application crashes with the error NameError (uninitialized constant ActiveSupport::HashWithIndifferentAccess): This error is raised when any attempt to access the session variable is made. I first thought it was because rails3 set a session[''session_id''] and rails2 set a session[:session_id] so wrote some code to delete session[''session_id''] but that didn''t solve the problem. The setup is pretty straightforward. They both use cookie sessions (for now). They both have the same key, secret and domain. nginex doe...
2009 Jan 22
2
SquirrelMail Sending Under Wrong Username
CentOS team... as is already bug reported and marked solved... as we await the upstream repair for this. It was reported that this was happening on CentOS 5. You likely already know, but it also happens on CentOS 4. For those unaware. It seems that SquirrelMail has an issue which allows mail to be sent out from one user on the system and it uses the from address of another user on the
2007 Oct 09
4
Camping and sessions proposal.
Hi Campers, from the discussions gathered around, the current Camping sessions don''t seem to be satisfying. ActiveRecord doesn''t seem to handle hashid as an identifier, plus it doesn''t seem to be fully consistent across the various RDBMS. On the other hand, the scope of the project does not permit to implement all kind of client persistence. Secure sessions with
2008 Mar 01
15
before_filter strange behaviour on update and create
Hi, I wrote a authentication script and I''m calling it like this in every class: class Blah < ApplicationController before_filter :auth def auth req_perm = Permission.find_by_name("Permission Blah") access = AccessController.new() if access.is_logged_in(session.session_id) if !access.get_current_user(session.session_id).role.permissions.include? req_perm redirect_to no_permission_url end else redirect_to login_url end end It works for the view pages but if an update or create is made then it always redirects to the login_url. Acting like the user is not l...