Michael … wrote:
I want to read the login session data from an existing
The sessions Table looks like this:
I think I have to uncomment this line in the enviroment.rb
config.active_record.schema_format = :sql
But how can I specify the schema of the sessions table?
Can anyone help me please.
thanks in advance
did you mean the line “config.action_controller.session_store =
:active_record_store” in environment.rb,
also the following comments are in
# You may configure the table name, primary key, and data column.
# For example, at the end of config/environment.rb:
# CGI::Session::ActiveRecordStore::Session.table_name =
# CGI::Session::ActiveRecordStore::Session.primary_key =
# CGI::Session::ActiveRecordStore::Session.data_column_name =
# Note that setting the primary key to the session_id frees you from
# having a separate id column if you don’t want it. However, you
# set session.model.id = session.session_id by hand! A
# on ApplicationController is a good place.