Click to See Complete Forum and Search --> : getting a Miva Merchant sessionid


decibel
04-08-2005, 09:40 PM
Hello again.

I am building this site using Miva Merchant, www.proinetonline.com/Merchant2/merchant.mvc and im not sure how to get the session id so i can make my own buttons. A session id is required to go to the account page and checkout page. In miva, i have put my links in an html area that also accepts javascript, so im guessing i can get the session id from a javascript call.

Or, if anybody knows Miva script, i could use the %token%, but im not sure which one it is.

heres what i have so far:

<a href="https://proinetonline.com/Merchant2/merchant.mvc?Session_ID=NOTSUREWHATTOPUTHEREScreen=ACCOUNT&Order=0">
<img src="images/account.gif" name="ACCOUNT" border="0"></a>

heres what i need

<a href="https://proinetonline.com/Merchant2/merchant.mvc?Session_ID=1f1fde2b583cb20cc662daf7fdf54bd0&Screen=LOGN&Order=0">
<img src="images/account.gif" name="ACCOUNT" border="0"></a>

im assuming since i will probrably need to use a javascript variable, i will need to put this link in a function
sumthing like this:

<script type='t/j'>
function gotoaccount(){
sessid = NOT SURE WHAT TO PUT HERE
document.location = 'https://proinetonline.com/Merchant2/merchant.mvc?'+sessid+'&Screen=ACCOUNT&Order=0'
</script>


<img src="images/account.gif" name="ACCOUNT" onclick=\"gotoaccount()\" border="0">

thanks again.

phpnovice
04-09-2005, 10:27 AM
Asked and answered in the JavaScript forum.