Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
aed1443b
Commit
aed1443b
authored
Feb 12, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning up the cookie class.
parent
ae544b85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
cookie.php
laravel/cookie.php
+6
-7
No files found.
laravel/cookie.php
View file @
aed1443b
...
...
@@ -31,19 +31,18 @@ class Cookie {
{
if
(
headers_sent
())
return
false
;
// All cookies are stored in the "jar" when set and not sent
// directly to the browser. This simply makes testing all of
// the cookie functionality easier since the cooke jar can
// be inspected by the developer in tests.
// All cookies are stored in the "jar" when set and not sent directly to
// the browser. This simply makes testing all of the cookie stuff very
// easy since the jar can be inspected by the tests.
foreach
(
static
::
$jar
as
$cookie
)
{
extract
(
$cookie
);
$time
=
(
$minutes
!==
0
)
?
time
()
+
(
$minutes
*
60
)
:
0
;
// A cookie payload can't exceed 4096 bytes, so if the
//
payload is greater than that, we'll raise an error
//
to warn the developer
.
// A cookie payload can't exceed 4096 bytes, so if the
payload is greater
//
than that, we'll raise an error to warn the developer since it could
//
cause serious session problems
.
$value
=
static
::
sign
(
$name
,
$value
);
if
(
strlen
(
$value
)
>
4000
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment