Skip to content

Commit

Permalink
workaround for warning on sf.net
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Delisle committed Oct 8, 2005
1 parent a841d13 commit 5c981c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$

2005-10-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/session.inc.php: workaround for warnings on session_start()
displayed on sf.net server

2005-10-08 Michal Čihař <michal@cihar.com>
* libraries/display_export.lib.php: Use same formatting for all options.
* libraries/import/ldi.php: This one does not handle charset conversion.
Expand Down
8 changes: 5 additions & 3 deletions libraries/session.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
}

// start the session
session_name( 'phpMyAdmin' );
session_start();
// on some servers (for example, sourceforge.net), we get a permission error
// on the session data directory, so I add some "@"
@session_name( 'phpMyAdmin' );
@session_start();

/**
* trys to secure session from hijacking and fixation
Expand All @@ -62,4 +64,4 @@ function PMA_secureSession() {
session_id( strip_tags( session_id() ) );
}
}
?>
?>

0 comments on commit 5c981c7

Please sign in to comment.