Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 16th, 2006, 10:41 PM   #1
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Delete local cookies with javascript

Say I wanted to delete everything in my temporary internet files and cookies folder. Can I do that with javascript?
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Mar 17th, 2006, 4:01 AM   #2
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
Quote:
Originally Posted by Lich
Say I wanted to delete everything in my temporary internet files and cookies folder. Can I do that with javascript?
No. You can delete the cookies your site created, but not other ones.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"
Agent 47 is offline   Reply With Quote
Old Mar 17th, 2006, 10:25 AM   #3
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
What i'm getting at is "is there a function to delete contents of X folder on C:\"?
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Mar 17th, 2006, 10:52 AM   #4
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
Quote:
Originally Posted by Lich
What i'm getting at is "is there a function to delete contents of X folder on C:\"?
Quote:
Originally Posted by Me
No.


You can't mess with the user's file system without their permission.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"
Agent 47 is offline   Reply With Quote
Old Mar 17th, 2006, 11:33 AM   #5
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
if I have the permission, this is only for testnig purposes on my computer. I just want to know if it is possible to do.
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Mar 17th, 2006, 11:50 AM   #6
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 644
Rep Power: 4 Jessehk is on a distinguished road
Quote:
Originally Posted by Lich
if I have the permission, this is only for testnig purposes on my computer. I just want to know if it is possible to do.
He has told you many times that no, you cannot.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Mar 17th, 2006, 10:26 PM   #7
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Quote:
Originally Posted by Jessehk
He has told you many times that no, you cannot.
He has not told me many times. First he though I was talking about just deleting cookies, not deleting cookie files, then he said I would need permission to do so. Plain and simple. I suppose I didn't explain myself well enough the first time.
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Mar 17th, 2006, 2:02 PM   #8
BraBo
Newbie
 
Join Date: Mar 2006
Posts: 1
Rep Power: 0 BraBo is on a distinguished road
Quote:
Originally Posted by Lich
if I have the permission, this is only for testnig purposes on my computer. I just want to know if it is possible to do.
You need ActiveX for that...
BraBo is offline   Reply With Quote
Old Mar 18th, 2006, 7:09 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
If the browser didn't keep client-side code in a sandbox, anyone could do anything they liked with your system. Just think about that a minute. You can allow that to be broken by overtly giving permission to install something like an active-X control. The world of white-shoed, plaid-jacketed scumbags on the internet often succeed in getting dummies to click 'YES" for they know not what. I clean up these systems allatime. You cannot access the client's system with Javascript.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 18th, 2006, 8:38 AM   #10
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
I believe you can alter the user's files using signed applets (so the user has to accept it first).
Polyphemus_ is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC