Displaying 20 results from an estimated 27 matches for "_session".
Did you mean:
session
2007 Mar 01
4
Cookie based session management problems
...I''m just missing something, but I can''t get sessions to survive
the first redirect. I added the following code to environment.rb, based
on Ryan''s (http://www.ryandaigle.com/) note:
config.action_controller.session = {
:session_key => ''_<%= app_name %>_session'',
:secret => ''<%= CGI::Session.generate_unique_id(app_name) %>''
}
The problem is probably related to the fact that the embedded ruby is
not getting processed. The generated cookie is
NAME: _<%
VALUE app_name %>_session...
What am I missing? (I'...
2006 Oct 05
3
Exception Notifier plugin has stopped working.
Exception Notifier seems to have ceased working for some reason. I
thought perhaps a change in edge rails was to blame, but I rolled back
to 4900 and the problem was still there.
The problem is that it generates an error in the _session.rhtml partial.
It looks as if a method in the PP class is bombing. It says wrong
number of argument (1 for 0), but there is no method on that line with
only 1 argument.
Any help is appreciated.
---
ActionView::TemplateError (wrong number of arguments (1 for 0)) on line
#3 of
vendor/plugins...
2013 Sep 27
1
fts-solr indexer-worker connects to wrong solr host dovecot-2.2.4
...[...]
auth-worker(2195): Debug: dict(hammer at rp-auth-test.com): lookup shared/userdb/hammer at rp-auth-test.com
auth-worker(2195): Debug: dict(hammer at rp-auth-test.com): result: {"uid":"8","fts":"solr","quota_rule4":"Spam:ignore","_session":"talk15_590ec6d100042","quota_rule3":"Trash:ignore","quota_rule2":"*:messages=2684354","quota_rule":"*:storage=5242880k","mail":"maildir:/mail/mailstore01/215/573/hammer at rp-auth-test.com/:INDEX=/mail/index...
2010 Jan 16
0
Converting snmpset() and snmpget() functions of php in rails
...'reset_port'']);
if($status == ''INTEGER: 2'' || $status == ''INTEGER: 3'') {
sleep(1);
$count++;
} else if($status == ''INTEGER: 1'') {
$toret = true;
} else {
$_SESSION[''reboot_error''] = ''The server could not be
rebooted because a proper reboot command could not be issued.'';
$count = 20;
}
}
if($count == 10) {
$_SESSION[''reboot_error''] = ''Timed out waitin...
2006 Jun 22
4
[Bug 926] pam_session_close called as user or not at all
http://bugzilla.mindrot.org/show_bug.cgi?id=926
carsten.benecke at rrz.uni-hamburg.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carsten.benecke at rrz.uni-
| |hamburg.de
------- Comment #16 from
2019 Apr 24
4
Systemd, PHP-FPM, and /cgi-bin scripts
...ble to populate $_FILES in a way compatible with the rest of the
framework, it appears that I need to be able to run the /cgi-bin in the same
context as the php-fpm environment so files can be access across all the
different parts of the web app. This includes related things like access to
the $_SESSION data files, and so on.
How do I even begin? Google searches are loaded with stuff like perl cgis
having access to PHP data, PRE-SYSTEMD, and I find no apache directives (so
far) that have been helpful.
Any ideas?
2006 Jun 26
2
Prototype Ajax event handlers
...new Ajax.Updater("calendars", "calendar.inc.php",
{asynchronous: true,
onCreate: function(){ showBusy },
onComplete: function(){ hideBusy },
method: "get",
parameters: "today=" + today +"&hotel_id=" + "<?=$_SESSION[hotel_id]?>"
});
}
function showBusy(){
new Effect.Appear(''busy'',{duration:0.5,queue:''end''});
}
function hideBusy(){
new Effect.Fade(''busy'',{duration:0.5,queue:''end''});
}
No matter how I try however these...
2009 Sep 20
2
[Authlogic]
...;undefined method
`^'' for "e":String''. I''ve double checked the lines in the Authlogic
code (see codepad urls for the tracelog), but I can find no trace of
any "^" in the code anywhere. The methods that result in this error
are the default current_user(_session) methods from the Authlogic
docs.
I''m not sure if this is a bug in Authlogic or my code, but I''d love to
know the answer to that!
Passenger output (and called methods): http://codepad.org/lm43n9KN
WEBrick output (bigger tracelog): http://codepad.org/owmJoGMx
Thanks in advance.
2006 Mar 16
6
Sessions or lookups?
My application needs to know if a user is an administrator, for security
and aesthetic reasons. At the moment, I store true/false in the session
by doing the following at login:
session[:user_is_admin] = authenticated_user.is_admin?
Is this OK to do? Or should I really be doing the following every time:
User.find(session[:user_id]).is_admin?
(user_id is always in the session too)
Is there
2006 Jul 05
8
loginGenerator - getting logged in username
...am using is:
<p>You are logged in as: <%= @session[:user] %>
but i have tried:
<p>You are logged in as: <%= session[:user] %>
anyone have any ideas?
also..
is there a way to get a list of all the current session variables?
in php, it would be something like:
print_r($_SESSION);
but i dunno how to do it in rails.
thanks!
--
Posted via http://www.ruby-forum.com/.
2003 May 10
4
New PAM code landing (at last)
Hello all,
The long-mooted PAM merge from FreeBSD is starting _now_. This replaces
the PAM password auth kludge that we have used until now with a discrete
challenge-response module. This module is invoked via
keyboard-interactive for protocol 2 or TIS auth for protocol 1.
Warning: this is a large change and will probably break things. It has
only been tested with basic password auth modules and
2005 Jul 06
6
DoubleRenderError exception
The DoubleRenderError exception recently introduced is forcing me to go back and rewrite my apps authentication handler. Before I could do a redirect right in the middle of a request. Whatever was happening after that went unnoticed, I assumed it was simply ending the request after the redirect was called, but apparently it was going on and rendering the page.
Why can''t a redirect
2019 Apr 24
0
Systemd, PHP-FPM, and /cgi-bin scripts
...LES in a way compatible with the rest of the
> framework, it appears that I need to be able to run the /cgi-bin in the same
> context as the php-fpm environment so files can be access across all the
> different parts of the web app. This includes related things like access to
> the $_SESSION data files, and so on.
>
> How do I even begin? Google searches are loaded with stuff like perl cgis
> having access to PHP data, PRE-SYSTEMD, and I find no apache directives (so
> far) that have been helpful.
>
> Any ideas?
Why not implementing this directly as "PHP&...
2019 Apr 24
0
Systemd, PHP-FPM, and /cgi-bin scripts
...LES in a way compatible with the rest of the
> framework, it appears that I need to be able to run the /cgi-bin in the same
> context as the php-fpm environment so files can be access across all the
> different parts of the web app. This includes related things like access to
> the $_SESSION data files, and so on.
Don't share data between services with /tmp.
Create a separate directory to share data, make sure the permissions
and SELinux attributes allow writing there. Put it in
/run/yourservice/ if you want it to be ephemeral and small.
The reason why the php-fpm service has...
2007 May 12
0
accessing the session after a request
Is there an easier way to access the session *after* the request then
this:
assigns[:_session]
?
Scott
2006 May 16
1
Horde/IMP setup
...this in the
logs a lot:
[Tue May 16 08:08:21 2006] [error] [client 67.133.211.52] PHP Warning:
Invalid argument supplied for foreach() in
/usr/local/www/horde/imp/lib/IMP.php on line 1197, referer:
https://mikestammer.com/horde/services/portal/sidebar.php
Line 1197 looks like this:
foreach ($_SESSION['imp']['namespace'] as $key => $val) {
if (!empty($key) && (strpos($mailbox, $key) === 0)) {
$cache[$key][$mailbox] = $val;
return $val;
}
}
Anyone have any tips or ideas?
2005 Mar 03
0
RE: Getting phpconfig to work?
...Read
Configs"=>"phpconfig.php?reset=reset")));
// init side menus
$menuList = array();
$rightMenuList = array();
session_start();
// this session variable will be set by a login screen
// in a future release
// for now, fake it for the prototype
$_SESSION['valid_user'] = $fakeuser;
$conf->OC_checkValidUser();
if($_GET['file']) // conf file requested via menu
How do I proceed from here?
Thanks,
Julius.
> Hi,
>
> You need to click on the phpconfig.php to actually load the page. It is
because the file is not ca...
2012 Jul 17
1
FW: rsync hanging after working reliably for years on one of my shares
...21381 0.000090 select(2, NULL, [1], [1], {60, 0}) = 1 (out [1], left {59, 999996})
21381 0.000101 write(1, "\261\5\0\7", 4) = 4
21381 0.000094 select(2, NULL, [1], [1], {60, 0}) = 1 (out [1], left {59, 999997})
21381 0.000103 write(1, "e_results']);\n unset($_SESSION['update_success']);\n\n return $output;\n}\n\nfunction update_info_page() {\n // Change qu
ery-strings on css/js files to enforce reload for all users.\n _drupal_flush_css_js();\n // Flush the cache of all data for the update status module.\n
if (db_table_exists('cache_update'))...
2005 Mar 03
1
RE: Getting phpconfig to work?
...Read
Configs"=>"phpconfig.php?reset=reset")));
// init side menus
$menuList = array();
$rightMenuList = array();
session_start();
// this session variable will be set by a login screen
// in a future release
// for now, fake it for the prototype
$_SESSION['valid_user'] = $fakeuser;
$conf->OC_checkValidUser();
if($_GET['file']) // conf file requested via menu
How do I proceed from here?
Thanks,
Julius.
> Hi,
>
> You need to click on the phpconfig.php to actually load the page. It is
because the file is not ca...
2006 Apr 18
1
''depot''app, trouble with session / cookies
...''find_cart'' call. At the first #1# breakpoint,
the session was in fact nil.
When I set <%=session.session_id%> in the views, it is always exactly
the same in the ''store'' view, (but changes every time in the
''display_cart'' view).
And the _session_id COOKIE never appears in Firefox cookie-list.
>From this, it seems the server (WEBrick) doesn''t send the session
cookie to the browser.
(New msg:)
Yeah, now I use ''Live HTTP Headers,'' and it shows that WEBrick never
sends the cookie to Firefox from my application....