See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
Re: [EP-tech] How to set a var in MyScreen and use it in MyWorkflow?
From: roman <roman.chyla AT gmail.com>
Date: Fri, 10 Oct 2008 10:58:28 +0200
| Threading: | ↑ [EP-tech] How to set a var in MyScreen and use it in MyWorkflow? from arnoud.jippes AT gmail.com • This Message → Re: [EP-tech] How to set a var in MyScreen and use it in MyWorkflow? from roman.chyla AT gmail.com |
*** ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k99A08f68e090f1c8c1bcc3cd57d5abd05fd4c-48EF1934.1050504%40googlemail.com%3E *** EPrints community wiki - http://wiki.eprints.org/ Hi, not sure if it is good for your purposes, i vaguely remember looking into Apache session and then for some reason I decided to use cookies. But perhaps there is a way to store some value in the session for the eprints user. My cookie code looks like this: sub action_accept { my( $self ) = AT _; my $session = $self->{session}; my $connection = $session->{request}->connection; my $cookie = $session->{query}->cookie( -name => "license_agreement_accepted", -path => "/", -value => 1, -domain => ↵ $session->{repository}->get_conf("cookie_domain"), ); EPrints::Apache::AnApache::header_out( $session->{"request"}, "Set-Cookie" => $cookie ); my $target = $session->param( "target" ); &myredirect($session, $target, $cookie); } Arnoud Jippes wrote: > *** ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k98G7k83dbca6da77f1527ac5ecd2132ebc0a7-34673cab0810090807y251a212eie3a5e34490d98d5f%40mail.gmail.com%3E > *** EPrints community wiki - http://wiki.eprints.org/ > > Hi all, > > I would like to test for a var in my eprint workflow which is set in > my screen plugin. Is this possible? I know I could do this via a > database field, but I do not want to add a database field just for > this purpose. > > E.g. I would like to use something like $session(my_var} in my > workflow. Is there a way? > > Much obliged, > > Arnoud. > >
[index] [prev] [next] [options] [help]




