search for: new_session

Displaying 17 results from an estimated 17 matches for "new_session".

2008 Jan 16
5
named route new_session not working
Anyone have any idea why a named route would NOT work? I did rake routes to make sure it was there and it was but for some reason new_session doesn''t work. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5...
2008 Jan 17
0
It seems to be a restful_authentication bug (was Re: Re: named route new_session not working)
...g more descriptive. :) > > In the method access_denied in the file authenticated_system.rb from > restful athentication, it generates this: > > def access_denied > respond_to do |format| > format.html do > store_location > redirect_to new_session # <---- NOTICE > end > format.xml do > request_http_basic_authentication ''Web Password'' > end > end > end > > Everytime I hit a ''login_required'' area of the site I get this error: > > un...
2006 Apr 27
4
Sessions Problems
Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
0
MemoryStore
When using memoryStore for sessions I notice that ''new_session''=true and consequently the session id is changing every POST. If I change the session store to PStore the hash ''new_session''=false and the session data is maintained across POSTs. Any ideas on how I can use memoryStore (and set new_session=false) so I can maintain sessio...
2006 Feb 28
0
Help needed: Sessions and memoryStore
Hi, I could really use some help in understanding why, when using memoryStore, the ''new_session'' value is always set to true for every request. This isn''t the case when using Pstore. With the ''new_session'' = true, the data I have set in the session gets lost. Is there a way I can set the ''new_session'' = false so I can preserve the data...
2007 Oct 16
2
Named routes in controller not working?
I have some "redirect_to"s using named routes in a controller that work fine in the browser, but choke my tests. The route in question is "new_session" and comes from a "map.resource :session, :controller => :session" route mapping. If I replace the named route in the controller with controller/action the tests run just fine, but for some reason it doesn''t know of the named route. I found some previous posts that seeme...
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator.. it''s a great little package, but i am running into one little problem.. i would like to have something that says: "logged in as <username>" in the site, but i am not quite getting it.. what i am using is: <p>You are logged in as: <%= @session[:user] %> but i have tried: <p>You are logged in as:
2006 Mar 15
3
[login_generator] implementing login limits
...(which apparently is just an alias for Ruby''s CGI::Session) turns up the :session_expires option which seems to be what I''m looking for. However, I see the following in the AWD book, pg.306: ":session_expires The absolute time of the expiry of this session. Like :new_session, this option should probably not be used under Rails." Hmmm. Any suggestions? -- Posted via http://www.ruby-forum.com/.
2011 Feb 23
5
Routing problem
...:action=>"update", :controller=>"words"} DELETE /words/:id(.:format) {:action=>"destroy", :controller=>"words"} session POST /session(.:format) {:action=>"create", :controller=>"sessions"} new_session GET /session/new(.:format) {:action=>"new", :controller=>"sessions"} edit_session GET /session/edit(.:format) {:action=>"edit", :controller=>"sessions"} GET /session(.:format) {:action=>"show", :contr...
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
...if you want to have special # behavior in case the user is not authorized # to access the requested action. For example, a popup window might # simply close itself. def access_denied respond_to do |format| format.html do store_location redirect_to new_session end format.xml do request_http_basic_authentication ''Web Password'' end end end # Store the URI of the current request in the session. # # We can return to this location by calling #redirect_back_or_default. def store_loc...
2009 Apr 20
11
manual access to session data outside of request?
So, given a sessionID, I have need to read and write the session stored information ''manually'', from _outside_ an actual Rails request/controller. Readers, I know your first response may be to tell me I don''t really want to do that. Trust me though, I really do, it makes sense for me in my case. I know this wouldn''t work if you''re using the new cookie
2006 Jan 02
1
Session and flash now working in IE6
Hi all, I noticed that my sessions and flashes are not working in IE6 (no problem with safari or firefox). I did a <%= debug session %> and indeed IE6 is showing session[:new_session] to be true all the time. This means a new session is created for every request. An old version of the same application is running on the same server under a different subdomain. In this sessions are working as expected in the same browser (so browser cookie settings are probably not the p...
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is. Anyway if I do just session[user] I get back the user id (the id from the user table) which is good. However this code does not work. <% a = session[:user] %> <% uname = User.find(:first, :conditions => id = a) %> <%= @uname %> TIA Stuart
2006 Aug 15
3
update or alter cart
I want to modify and update the items in the Depot - "display_cart". Since the cart is in a session, its a little hard to get at the data. I just want to create a way to change quantities, prices and recalculate. Has someone done this, and could you point me to the right direction. Thanks Chas -- Posted via http://www.ruby-forum.com/.
2007 Jan 26
0
Problems with assert_select in integration tests
...User", "account_type"=>"Personal", "password"=>"T3st!ng", "email"=>"me-hcDgGtZH8xPR7s880joybQ@public.gmane.org"}, "flash"=>{}}, @dbprot=[], @dbman=#<CGI::Session::ActiveRecordStore:0x246d004 @session=nil>, @new_session=false>, @cgi=#<ActionController::Integration::Session::MockCGI:0x24772fc @output_cookies=[["d0060c4ee33f3d58c0ef83bbfa107b6f"]], @env_table={"CONTENT_LENGTH"=>nil, "HTTP_HOST"=>"www.example.com", "REMOTE_ADDR"=>"127.0.0.1",...
2007 Jan 23
3
Too many session numbers per page request?
If I view the source on one of my pages I see: <script src="/javascripts/prototype.js?1168898271" type="text/javascript"></script> <script src="/javascripts/effects.js?1169242655" type="text/javascript"></script> <script src="/javascripts/dragdrop.js?1169241657" type="text/javascript"></script>
2013 Dec 17
2
Setting up a lustre zfs dual mgs/mdt over tcp - help requested
...t.lustre: mount lustre-mdt0/mdt0 at /mnt/lustre/local/fs0-MDT0000 failed: File exists attached lctl-dk.local02 What am I doing wrong? I have tested lnet self-test as well, using the following script: # cat lnet-selftest.sh #!/bin/bash export LST_SESSION=$$ lst new_session read/write lst add_group servers 10.0.0.[22,23]@tcp lst add_group readers 10.0.0.[22,23]@tcp lst add_group writers 10.0.0.[22,23]@tcp lst add_batch bulk_rw lst add_test --batch bulk_rw --from readers --to servers \ brw read check=simple size=1M lst add_test --batc...