Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b1d86208
Commit
b1d86208
authored
Jan 11, 2002
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Applied Marco's first "remember me" patch.
parent
3b5c3806
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/user.module
+1422
-1410
1422 additions, 1410 deletions
modules/user.module
modules/user/user.module
+1422
-1410
1422 additions, 1410 deletions
modules/user/user.module
with
2844 additions
and
2820 deletions
modules/user.module
+
1422
−
1410
View file @
b1d86208
...
...
@@ -636,6 +636,18 @@ function user_login($edit = array()) {
user_save
(
$user
,
array
(
"sid"
=>
session_id
()));
/*
** If the user wants to be remembered, set the proper cookie such
** that the session won't expire.
*/
if
(
$edit
[
"remember_me"
])
{
setcookie
(
session_name
(),
session_id
(),
time
()
+
3600
*
24
*
365
);
}
else
{
setcookie
(
session_name
(),
session_id
());
}
/*
** Redirect the user to the page he logged on from or to his personal
** information page if we can detect the referer page:
...
...
This diff is collapsed.
Click to expand it.
modules/user/user.module
+
1422
−
1410
View file @
b1d86208
...
...
@@ -636,6 +636,18 @@ function user_login($edit = array()) {
user_save
(
$user
,
array
(
"sid"
=>
session_id
()));
/*
** If the user wants to be remembered, set the proper cookie such
** that the session won't expire.
*/
if
(
$edit
[
"remember_me"
])
{
setcookie
(
session_name
(),
session_id
(),
time
()
+
3600
*
24
*
365
);
}
else
{
setcookie
(
session_name
(),
session_id
());
}
/*
** Redirect the user to the page he logged on from or to his personal
** information page if we can detect the referer page:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment