Reply

Netmri REST and authenticate _netmri cookie

csi-net
Techie
Posts: 14
2074     0

Hello,

 

I noticed that when we use https://x.x.x.x/api/3/authenticate the appliace reply with the session cookie _netmri.

I noticed that cookie expiration date is year 2038 !!

Is there a way to request, or setup in netmri, to control the default cookie expiration ?

Which API shoud I use to clear the session cookie ?

 

Thank's in advance.

Re: Netmri REST and authenticate _netmri cookie

Expert
Posts: 272
2075     0

I checked another NetMRI and the "_netmri" cookie is only a session cookie -- it expires at the end of the browser session. I'm not sure what a "session" is for your RESTful method.

 

Many sites set a cookie expiration date of 2038 as essentially infinity, but I haven't noticed NetMRI do so.  It's up to the client "browser" to control how cookies are treated -- accept/reject/accept only session cookies, etc.

Re: Netmri REST and authenticate _netmri cookie

csi-net
Techie
Posts: 14
2075     0

I'm not sure because is more that 2 week I'm using the same cookie (I'm using POSTMAN for Test).

This mean that Netmri somewhere take track of the _netmri cookie. For security reason and resources I'd like to be able to delete or set expiration to the cookie _netmri.

Re: Netmri REST and authenticate _netmri cookie

chris_dipaola
Techie
Posts: 10
2075     0

This post is a couple years old, but did you ever get an answer for this?  I'm running up against the same thing myself.

 

Thanks.

 

Chris.

Showing results for 
Search instead for 
Do you mean 

Recommended for You