Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$cookie service should allow setting cookies that last longer than a session #4069

@jan-molak

Description

@jan-molak

Hi and thanks for all your awesome work on angular.js so far!

It seems like the browser service that's being used by the $cookie service hardcodes the expiration time of any cookie set with it: https://github.com/angular/angular.js/blob/master/src/ng/browser.js#L287

It would be great if it was made possible to specify expiration time as a parameter when setting a cookie.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions