Skip to content

Instantly share code, notes, and snippets.

View ShubhamS32's full-sized avatar
💭
To be happy

ShubhamS32

💭
To be happy
View GitHub Profile
@ShubhamS32
ShubhamS32 / session tracking.md
Created March 14, 2019 12:08 — forked from jackblack369/session tracking.md
[learn session tracking] #java #web

session

Session simply means a particular interval of time. Session Tracking is a way to maintain state (data) of an user. It is also known as session management in servlet.

  • HTTP is stateless that means each request is considered as the new request. It is shown in the figure given below:

  • There are four techniques used in Session tracking:

    • Cookies
@ShubhamS32
ShubhamS32 / wget-download-site.sh
Created September 5, 2017 07:25 — forked from jasperf/wget-download-site.sh
Use wget to get a local copy of a site with all files and folders . This an ideal way to clone a (static html/css/javascript based ) site from the command line. #copy #clone #wget #download
#http://stackoverflow.com/questions/6348289/download-a-working-local-copy-of-a-webpage
#http://stackoverflow.com/questions/8755229/how-to-download-all-file-from-website-using-wget
#http://stackoverflow.com/questions/4272770/wget-with-authentication?rq=1
#add browser headers:
#--header="Accept: text/html" --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/30.0"
#add .htaccess authentication details:
#--password=password --user=user
wget -m -p -E -k -K -np http://site/path/
wget -p -k http://ExampleSite.com
# and another via Quora https://www.quora.com/How-do-you-export-a-WordPress-site-to-a-static-HTML