Code Search for Developers
 
 
  

checkLOGIN.pl from eXtensible Genome Data Broker at Krugle


Show checkLOGIN.pl syntax highlighted

## grab form parameters and saved cookies
use CGI ":all";
use PHP::Session;

$GV->{SessCookieName} = "PHPSESSID";
$GV->{SessLoginParam} = "PlantGDBlogin";

($cgi_paramHR->{USERid},$cgi_paramHR->{USERfname},$cgi_paramHR->{maintain}) = (getUserId(),"",0);


# copied from UCA/fuctions.pl
sub getUserId{
  my @sessionCookie = cookie($GV->{SessCookieName}); # reads session id from cookie and accesses php session variables
  my $id = $sessionCookie[0];
  if (defined($id) && ($id ne "")){
    my $session = PHP::Session->new($id, { create => 1 });
    if ($session->is_registered($GV->{SessLoginParam})){
      my $USERid = $session->get($GV->{SessLoginParam});
      return $USERid;
    }else{
      $session->destroy;
      return;
    }
  }
  return;
}




See more files for this project here

eXtensible Genome Data Broker

The xGDB project provides scientists with an online portal for the integration of diverse sources of genomic data. Portals allow researchers to effectively target a specific scientific question by customizing their interactions with available data.

Project homepage: http://sourceforge.net/projects/xgdb
Programming language(s): JavaScript,Perl,PHP
License: other

  DSO/
    AnnotationTrack.pm
    BAC.pm
    CDNApgs.pm
    ESTpgs.pm
    GBKann.pm
    GSEG.pm
    GeneSeqerSequence.pm
    GenomeSegmentTrack.pm
    Locus.pm
    Marker.pm
    PROBE.pm
    SequenceTrack.pm
    TIGRtu.pm
    UCAann.pm
  fct/
    GenomeData.pm
  GDBgui.pm
  GSQDB.pm
  GeneView.pm
  GenomeView.pm
  SeqUtils.pm
  checkLOGIN.pl
  getPARAM.pl
  index.html
  xGDB_SUPPORTED_COLORS.pl