-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix resending mail requests (#401) #949
base: master
Are you sure you want to change the base?
Conversation
# Generate formtoken | ||
ini_set("session.use_cookies",0); | ||
ini_set("session.use_only_cookies",1); | ||
ini_set("session.use_strict_mode",0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use ini_set
in a lot of places in our code, and here in this page.
Maybe we should move them to index.php?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!
Maybe at some point we would need to have cookies sent for saving the session at client side. So, I am rather thinking to a dedicated function.
Also I am not quite satisfied by calling ini_set, whereas:
- there are some warning in debug mode about misusage of ini_set function
- it seems you can set those parameters in the session_start function (but my tests don't work for now)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, using php session mechanism was an easy way to deal with tokens, but we may find a better solution. It will require a token backend on server side, which should be something easy to set up (files, in memory base, ...)
} | ||
|
||
#============================================================================== | ||
# Send token by mail | ||
#============================================================================== | ||
if ( !$result ) { | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it intentional to add this blank line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I'll remove it
Closes #401