i have an apache server at home on which i run a small website.
in the httpd.conf i have set some authentication requirements on specific directory's
what i wanna do now is to make a script and put it in my bashrc or dtprofile ... so after i login to the GUI or shell with my user/pass the script will be triggered to send my credentials to the server (a cookie or token) so that when i open my password protected directory it wont asked me for user/pass but it will act as if i already provided them
and when i log off the server another script should be launched and remove that token or cookie ... ?
any idea on how to do something like this or what/where exactly to search
