P
P
pit_ne_spit2021-10-02 17:28:20
Python
pit_ne_spit, 2021-10-02 17:28:20

Why is laravel_session returning strange value when using get.cookie?

Hello.
I'm learning autotests on selenium+python bundle.
I need to get the expiry date from laravel_session in order to use it later.
I do driver.get_cookie('laravel_session') and it returns a library that has the expiry I want: 1633255932, although in Storage, on the page, I see that expires/max-age looks like '2021-10-03T09:33: 18.334Z'
What is the reason for this? And how would I get exactly what I see in Storage?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-10-02
@pit_ne_spit

1633255932 is Unix Timestamp
Working with unix timestamp/time on Python
PS
https://www.unixtimestamp.com/
https://www.epochconverter.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question