Password Protect Directories - Username as Session Variable

Asked by:
HubFans / n/a Points
Time:
2015-05-28 7:52 pm EST
Category:
Htaccess
Hits:
60
I am about to implement the Password Protect option to my site and was wondering if it's possible to use the Username that has been assigned as a Session Variable on my pages that use PHP...

The reason for the request is that I have a few forms within the site that submit info to our company and as it stands we have to ask the user for their email address on each form so that when it comes to us we know who sent it.

If we can use the Username that was entered in on the Password Protect as a Session Variable, then we wouldn't have to ask them each time they submit a form.

Any advise would be greatly appreciated.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2015-05-28 8:27 pm EST
Hello,

Thanks for the question about using the username and password as a session variable to bypass the Password Protect option from cPanel. I checked on this, and it cannot be used in that manner. I hope this helps to answer your question! If you have any further questions or comments, please let us know.

Regards,
Arnel C.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}