/    Sign up×
Community /Pin to ProfileBookmark

Need To Keep UnLogged-ins From Bookmarking and entering unsecure Post Login pages

I am designing a clothing line site where Wholesalers must login to enter the Wholesale prices pages. These pages aren’t actually secure (because no credit credit cards are used there, just wholesale prices are shown and an order form for the buyers). The site can be seen at [url]www.websitedesigns.cc/SoSporty[/url] and the Login page is at [url]www.websitedesigns.cc/SoSporty/Login.html[/url] Once logged in, the Member is forwarded to [url]www.websitedesigns.cc/SoSporty/mainpage.html[/url] (presently an empty page)
Anyone can enter that page if they just know the URL of it…How can I add a cookie to the member on a Successful Login and a cookie checker to the mainpage.html and other wholesale pages, so that noone can get in them sideways…only through the login page??? I would like to keep the login coding that I already have though, just want to add cookies to that code on successful login, with only a few hours expiration of the cookie. Thanks!!!?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@fknMar 10.2003 — I found this on another site... It opens a popup window if cookie exist. Cookie lasts for 10 minutes. Then you must login again.

See this link for more information:

http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=5960


<script language="JavaScript">

if (document.cookie.indexOf("ScriptBreaker.com") == -1) {

var expdate = new Date((new Date()).getTime() + 1000*60*10);

document.cookie="ScriptBreaker.com=general; expires=" + expdate.toGMTString() + "; path=/;";

window.open("cookie_popup.htm","","toolbars=no,width=250,height=200");

}

</script>

Hope this will help you!
Copy linkTweet thisAlerts:
@NicodemasMar 10.2003 — Just a note, using Javascript to secure anything is by no means secure. If you want to keep users out, you should use a server side technology to assist you. Users without cookies turned on in the browsers, or those with Active Scripting turned off aren't going to get any benefit from your site if you use these options.
×

Success!

Help @allenrubin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...