Aaron Patterson
|
f8720a04d1
|
porting session.clear fix to master branch. [#5030 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-07-01 15:17:19 -07:00 |
|
Michael Lovitt
|
ebee77a28a
|
Fixed that an ArgumentError is thrown when request.session_options[:id] is read in the following scenario: when the cookie store is used, and the session contains a serialized object of an unloaded class, and no session data accesses have occurred yet. Pushed the stale_session_check responsibility out of the SessionHash and down into the session store, closer to where the deserialization actually occurs. Added some test coverage for this case and others related to deserialization of unloaded types.
[#4938]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-06-27 22:39:06 +02:00 |
|
José Valim
|
d69ebb849a
|
Avoid deserializing cookies too early, which causes session objects to not be available yet. Unfortunately, could not reproduce this in a test case.
|
2010-06-24 20:03:03 +02:00 |
|
Michael Lovitt
|
49f52c3d91
|
Sessions should not be created until written to and session data should be destroyed on reset.
[#4938]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-06-23 11:56:35 -07:00 |
|
Rizwan Reza
|
edbb78d6cc
|
The previous commit didn't work with complex domains, which is now fixed.
|
2010-06-11 16:34:52 +02:00 |
|
Rizwan Reza
|
44830ead1c
|
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [#4818 state:resolved]
This reverts commit 330a89072a .
|
2010-06-11 16:34:52 +02:00 |
|
José Valim
|
c536835957
|
Cut the fat and make session stores rely on request.cookie_jar and change set_session semantics to return the cookie value instead of a boolean.
|
2010-05-18 03:18:23 +02:00 |
|
José Valim
|
25f7c030e4
|
Simplify cookie_store by simply relying on cookies.signed.
|
2010-05-18 02:05:20 +02:00 |
|
Joshua Peek
|
d2d4acf027
|
Cookies middleware
|
2010-01-16 17:22:27 -06:00 |
|
Jeremy Kemper
|
425a02cece
|
Ruby 1.9: resolve constant lookup issues
|
2009-11-04 15:41:50 -08:00 |
|
Joshua Peek
|
a5c82a9dfb
|
Start rewriting some internal tests to use the new routing dsl
|
2009-10-20 16:03:55 -05:00 |
|
Joshua Peek
|
84e94551f6
|
Add custom "with_routing" to internal tests to fix reseting session after using
with_routing. This only affects our internal AP tests.
|
2009-10-03 20:45:49 -05:00 |
|
Joshua Peek
|
acfeec5151
|
Allow integration test rack app to be set with "@app" ivar instead of using open_session
|
2009-09-26 20:51:05 -05:00 |
|
Joshua Peek
|
1f72700575
|
Move default middleware stack into initializer
|
2009-09-26 13:41:32 -05:00 |
|
Joshua Peek
|
0c638b3406
|
Clean up session integration tests so they don't reference AC::Dispatcher
|
2009-09-26 12:56:53 -05:00 |
|
Jay Pignata
|
e0f1a7dc19
|
If session_options[:id] is requested when using CookieStore, unmarshal the session to access it [#2268 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2009-09-03 11:50:01 -05:00 |
|
Joshua Peek
|
ba5995dcd9
|
Reset session in integration tests after changing routes to reload the middleware stack
|
2009-08-27 12:43:26 -05:00 |
|
Pratik Naik
|
9cda410d81
|
Make cookie store tests pass with the new base
|
2009-05-25 16:52:44 +02:00 |
|
Joshua Peek
|
0494909679
|
Inherit TestSession from Session::AbstractStore and add indifferent access to Session::AbstractStore.
|
2009-04-26 14:33:57 -05:00 |
|
Joshua Peek
|
fc5c1b0e90
|
Session tests belong under dispatch folder
|
2009-04-21 19:57:18 -05:00 |
|