search for: session_token_domain

Displaying 1 result from an estimated 1 matches for "session_token_domain".

2011 Apr 29
3
questions about cookies when bridging together two rails apps
...to another while still being signed in as unique user. I come across this line of code where I don''t understand where some of these methods are coming from: @session = Session.create!(:user => @user) cookies[:session_token] = {:value => @session.token, :domain => Settings.session_token_domain} 1) I look in Session class and there is no create! class method. Yet it works and doesn''t throw an exception. I do understand when that create! method is called, the constructor is initialized first and generates a random number and assigns it to the token property (self.token) of the s...