Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: setting session variables

by Thilosophy (Curate)
on May 18, 2005 at 07:19 UTC ( [id://458094]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    elsif( (!$post{'page'}) && (!$self->session->param('page')) ) {
      $self->session->param('page' => 1);
    } else {
      $self->session->param('page' => 1);
    }
    
  2. or download this
    else{
       $self->session->param('page' => 1);
    }
    
  3. or download this
    if($post{'page'}){
      ...    
    } elsif( (!$post{'page'}) && ...) {
    
  4. or download this
    my $session = $self->session;
    foreach (qw[ page ] ) {
       $session->param( $_ => $post{$_} ? $post{$_} : 1);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458094]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found