Set Domain on ASP Session Cookie
How do I set the domain on the session cookie generated by classic ASP? I'm using 2 urls for my site, www.example.com and shop.example.com and I need the session cookie sent to both. ...
How do I set the domain on the session cookie generated by classic ASP? I'm using 2 urls for my site, www.example.com and shop.example.com and I need the session cookie sent to both. ...
I am researching the possibility of porting an application written in classic ASP with ADO record sets and an Oracle database to PHP5 and OCI8. We have lots of stored procedures and queries with bind variables for performance. My problem is that we have become lazy from using the ADO classes and the EOF and BOF indicators along with Mo...
Hi, If i use DatePart("m",Now()) ' out put will be 7 but my requirment is to display "07" rather than "7" Is there any direct method to achieve this, or should should I write custom code to prefix "0" zero? ...
I have a dropdown which you choose one of three values <select id="FilterType" name="FilterType"> <option value=''>All</option> <option value="LanCode">Lan Code</option> <option value="SupportTeamName">Support Team</option> </select> based on what the user chooses another dropdown is created beside that one it will have a bun...
I'm implementing click tracking from various pages in our corporate intranet in order to add some sorely needed crowd-sourced popular link features ("most popular links in your department in the last 24 hours", etc.) I'm using jQuery's .live() to bind to the mousedown event for all link elements on the page, filter the event, and then f...
hi I have this form <form action="http://www.mysite.com/asp/formd.asp" method="post" target="_blank"> so the asp looks like below, it opens a new window where ot says "send ok" my question is how and where can I contro/define the style of this new window i.e background fonts color etc thanks the ASP code: <%@ Language=VBScript...
I have problem in overwriting cookies value cross sub domains, a website running in ASP which is in www.domain.com and mobile site running in PHP with m.domain.com sharing same cookie Cookie created in www.domain.com via asp as follow: Response.Cookies("cookie_name")="value1" Response.Cookies("cookie_name").Expires=DateAdd("m", 1, Date...
I have a file that is being included, in that file there's Server.MapPath('../_data") which doesn't work since that file included is not in the same Server.MapPath as the file executed. any Idea of how I can get the included file's path? To clarify the situation, I added a picture As you can see, I'm including a file from one si...
I'm sure this is something really simple that I'm overlooking, but MS SQL is new to me -- I am (or at least thought I was) fairly comfortable with basic MySql though. SELECT l.link_id, l.link_allcount, d.desc_id, d.desc_count, d.desc_text, h.hour_17, dl.day_19 FROM lnktrk_links AS l, lnktrk_hourly AS h, lnktrk_daily AS dl LEFT JOIN ...
Hi, I have some Selenium test scripts which I'm using to test a Classic ASP web app, but I'm having problems after restoring the database (SQL Server 2005) with a backup file before every test is run. Immediately after the successful RESTORE (from a Python script running sqlcmd ...) when the ASP tries to connect to the db I get the foll...
I'm having a problem executing a command from a command line through an ASP script using the wscript.shell object. Here is my code: inPath = server.mappath("/connect/dev_f_fusion3/video/6EA63679C27E48538D79F7C7295201CF/6EA63679C27E48538D79F7C7295201CF.mov") outPath = server.mappath("/connect/dev_f_fusion3/video/6EA63679C27E48538D79F7C7...
We have just purchased some software that provides an API into our phone system allowing us to dial, hangup etc.. The API was designed to be used client side (internet explorer / activex). We want to use this server side and execute the dial commands via an ajax call to a classic ASP script. The basic VBScript for initialising the co...
Hi, I have two separate websites on the same server. One site is a forum (written in ASP Classic) where users may post information in various sections and threads etc. The other website (written in ASP.NET VB) is used for a club where users may purchase and download videos, etc. The Forum site uses caching to retain member informatio...
Hi, I have a string input "abc def 50 ghi jhk lmn 63 op qrst" i need to output this string in reverse without touch the numbers "tsrq po 63 nml khj ihg 50 fed cba" i created a vb function function strWords(s,length) strWords = "" s = replace(s,")"," ( ") s = replace(s,"("," ) ") s = replace(s,"-","- ") s = replace(s," &...
I'm new to ASP (new job uses a windows server and I've only used Linux before) and I'm building a 'log' that stores it's data into XML files. I've got it reading the XML out perfectly but now I'm trying to get it to print out data from a specific range of dates. The way I'm doing this is by using the DateDiff function to compare the dat...
i found on web function to encode string to 64 Function Base64Encode(inData) 'rfc1521 '2001 Antonin Foller, Motobit Software, http://Motobit.cz Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" Dim cOut, sOut, I 'For each group of 3 bytes For I = 1 To Len(inData) Step 3 Dim nGroup, pOut, sGroup 'Creat...
In a server-side Classic ASP file, let's say you receive a Request string containing malicious javascript like, "alert('HACKED');" DIM foo : foo = Request.Form("foo"); 'Contains malicious javascript and then later we're writing javascript to screen containing that value. %> <script type="text/javascript"> // some code <%=foo %>...
This line: set Response = nothing Fails with the error "Microsoft VBScript runtime error '800a01b6' Object doesn't support this property or method: 'Response' " Now, I can think of any number of reasons why the engine might not want to let me do such a seemingly silly thing, but I'm not sure how a missing method could be stopping...
hi my csv contain mix datatype f.ex. in cell E8 data format is date, and other data in this E column are string. i use this connetion string in classic asp ,VB Script and back end SQl server ChekCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Path1 & ";Extended Properties=""text;HDR=YES;IMEX=1;FMT=Delimited""" Set rs1 = ChekC...
I have a problem which I'm struggling to fix. I have a form with many checkboxes containing email addresses, the result of which is sent to another page. This page will send out newsletters. This is working at the moment, but what I would like to do is include their name. From the form received I get the results ([email protected], [email protected]...