Here is the fix [Add to sessions_hack.rb]
class CGI::Session::ActiveRecordStore
alias original_initialize initialize
def initialize(session, option = nil)
if option.include?("session_data")
session.instance_variable_set('@session_id', option
["session_data"]) unless option["session_data"].empty?
end
original_initialize(session, option)
end
end
On Mar 29, 9:04 am, sprite <[email protected]> wrote:
> Can't make any sense of this. The session ID passed in is actually
> correct. The session ID displayed in the Rails log is wrong...
>
> Processing UsersController#show (for 12.228.3.116 at 2009-03-29
> 10:59:02) [GET]
> Session ID: 1fc819f0a5fa5f46a3c70520146ee57f
> Parameters: {"id"=>"camgirl"}
> Rendering template within layouts/application
> Rendering users/show
> Completed in 133ms (View: 110, DB: 3) | 200 OK
> [http://www.vipwithme.com/camgirl]
>
> Processing PhotosController#swfupload (for 12.228.3.116 at 2009-03-29
> 10:59:36) [POST]
> Session ID: aad4900bce548456f9a9af5a101e0fab <----WTF?
> Parameters: {"Filename"=>"jessicahot.jpg", "album_id"=>"14",
> "_vipwithme2_session"=>"1fc819f0a5fa5f46a3c70520146ee57f",
> "Upload"=>"Submit Query", "user_id"=>"1",
> "Filedata"=>#<ActionController::UploadedStringIO:0x7f060573dfb8>}
> Filter chain halted as [:login_required] rendered_or_redirected.
> Completed in 1ms (View: 0, DB: 1) | 406 Not Acceptable
> [http://www.vipwithme.com/1/albums/14/photos/swfupload?_vipwithme2_session=1f...]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---