fix: Session id
This commit is contained in:
parent
0aac23dedf
commit
ebf8fd8065
2 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
list
|
||||
- fix: Syndicated wobject erro 6.8+
|
||||
- fix: new spectre.pl error (Martin Kamerbeek / Procolix)
|
||||
- fix: Session id (Martin Kamerbeek / Procolix)
|
||||
|
||||
7.0.0
|
||||
- Welcome to a whole new world of WebGUI. After 2.5 years and 20,000 hours of
|
||||
|
|
|
|||
|
|
@ -370,6 +370,7 @@ sub open {
|
|||
bless $self , $class;
|
||||
$self->{_request} = Apache2::Request->new($request) if (defined $request);
|
||||
my $sessionId = shift || $self->http->getCookies->{"wgSession"} || $self->id->generate;
|
||||
$sessionId = $self->id->generate if ($sessionId !~ m/^[A-Za-z0-9\+\/=]{22}$/);
|
||||
my $noFuss = shift;
|
||||
$self->{_var} = WebGUI::Session::Var->new($self,$sessionId, $noFuss);
|
||||
$self->errorHandler->warn("You've disabled cache in your config file and that can cause many problems on a production site.") if ($config->get("disableCache"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue