Displaying 3 results from an estimated 3 matches for "session_logged_in".
2006 May 23
2
additional fields in session DB table
...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(session.session_id)
@tmpsess.update_attributes(session_hash) if @tmpsess
the logfile then shows :
UPDATE phpbb_sessions SET
"data" =
''BAh7EjoOZGVmX3N0YXRlIgdOWToIbGF0Zho0MC42NTk5OTk5OTk5OTk5OTcArhQ6DGRlZl9sYXQwOglsb25nZhstNz...
2006 Mar 09
2
turn off auto increment
...e the session_id as noted here in script/console:
>> sess = Session.new
=> #<Session:0x407683f0 @attributes={"session_start"=>0, "session_time"=>0,
"session_ip"=>"0", "session_admin"=>0, "session_page"=>0,
"session_logged_in"=>false, "session_user_id"=>0}, @new_record=true>
>> sess.session_id
=> nil
>> sess.session_id = ''3893839393''
NoMethodError: undefined method `session_id='' for #<Session:0x407683f0>
from /usr/local/lib/ruby/gems/1.8/gem...
2006 May 30
3
phpbb forum with rails application.
I would like to knock up a phpbb forum with a rails application.
I wanted to do this as I want to use ActiveRecord to crawl through the
user database in the rails app.
Is there a way to do this - on the same domain name and server...
Or does it depend how the server is setup?
--
Posted via http://www.ruby-forum.com/.