Skip to content

user cant custom their session expire time #3633

Closed
@akg1234

Description

@akg1234

We use GitHub Issues for bugs.

If you have a non-bug question, ask on Stack Overflow or Server Fault:

You may also search through existing issues before opening a new one: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue

--- Please use this template. If you don't use this template, your issue may be closed without comment. ---

Issue Description

Describe your issue in as much detail as possible.

Steps to reproduce

ParseSession.getCurrentSessionInBackground(new GetCallback<ParseSession>() { public void done(ParseSession ps, ParseException e) { if (e == null) { ps.put("device", Build.MODEL); ps.put("app", getPackageName()); Calendar cal = Calendar.getInstance(); cal.add(Calendar.MINUTE, 15); ps.put("expiresAt", Calendar.getInstance()); ps.saveEventually(new SaveCallback() { public void done(ParseException e) { if (e == null) { Log.i(TAG, "parse session sucesse"); } else { Log.i(TAG, "parse session not sucess"); } } }); } else { Log.i(TAG, "cant get parse session"); } } });

Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

Expected Results

What you expected to happen.

Actual Outcome

What is happening instead.
"User cannot modify readonly attribute: exipresAt"

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.3.6
    • Operating System: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [FILL THIS OUT]
  • Database

    • MongoDB version: [FILL THIS OUT]
    • Storage engine: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [FILL THIS OUT]

Logs/Trace

Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions