session_age: a convienence function for getting the age of a session.

Description Usage Arguments Value Examples

View source: R/session_age.R

Description

See pkg.env$session_birthdate for time when session was created. See pkg.env$session_expires for session age when session goes stale

Usage

1

Arguments

session

Session object from authenticate_sb. Defaults to anonymous or last authenticated session

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

...

Additional parameters are passed on to GET, POST, HEAD, PUT, or DELETE

Value

difftime object

Examples

1
2
3
4
5
## Not run: 
authenticate_sb('bbadger@usgs.gov')
sbtools::session_age()

## End(Not run)

sbtools documentation built on May 19, 2017, 6:11 p.m.

Search within the sbtools package
Search all R packages, documentation and source code