473,734 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BASE64 Encoding and don't want to use session variables

Hello again all,

I've finished my whole application and now I don't like the whole
session variables that I am using. I have a form, user fills in info
clicks submit and using CDOSYSMail an email link gets created with an
encoded query string. i.e
http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
http://www.yahoo.ca?userID=54&LocationID=Denver.

Now when the user get's this email and clicks on the link I have a
decode function(again using BASE64) that takes that url and decodes it
to http://www.yahoo.ca?userID=54&LocationID=Denver. My app then
connects to the database and pulls info associated with that
querystring. I am doing the passing from page to page using session
variables. I do not want to do this? Any ideas How I can take what
is encoded in the url link and decode it on the next page? Let me
know if there is a simple solution to this. I love the encode/decoding
function. Thanks very much.

Right now I have on one page i.e Page1.ASP
Expand|Select|Wrap|Line Numbers
  1. userID = oCmdInfo.Parameters("User_ID").value
  2. LocationID = oCmdInfo.Parameters("Location_ID").value
  3.  
  4.  
  5. SessionUserEncode = base64_encode("UserID=" & userID )
  6. SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  7.  
  8.  
On the receiving page (Pagereceive.as p) I have
Expand|Select|Wrap|Line Numbers
  1. SessionUserDecode = base64_Decode(SessionUserEncode)
  2. SessionLocationDecode = base64_decode(SessionHardwareEncode)
  3.  
This will work if I am the user who does all the inputting of the form
and my browser is still open when I receive the email link and click
on it. If my browser is closed the session get's lost obviously.

Jun 13 '07 #1
12 3838

"MrHelpMe" <cl********@hot mail.comwrote in message
news:11******** **************@ n15g2000prd.goo glegroups.com.. .
Hello again all,

I've finished my whole application and now I don't like the whole
session variables that I am using.
What does that mean? You don't like session variables at all?
You don't like the set of session variables you are using?
Why don't you like them?
>I have a form, user fills in info
clicks submit and using CDOSYSMail an email link gets created with an
encoded query string. i.e
http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
http://www.yahoo.ca?userID=54&LocationID=Denver.

Now when the user get's this email and clicks on the link I have a
decode function(again using BASE64) that takes that url and decodes it
to http://www.yahoo.ca?userID=54&LocationID=Denver. My app then
connects to the database and pulls info associated with that
querystring. I am doing the passing from page to page using session
variables. I do not want to do this?
Why? Without knowing that it's difficult to determine what is an
appropriate alternative.
Any ideas How I can take what
is encoded in the url link and decode it on the next page? Let me
know if there is a simple solution to this. I love the encode/decoding
function. Thanks very much.

Right now I have on one page i.e Page1.ASP
Expand|Select|Wrap|Line Numbers
  1. userID = oCmdInfo.Parameters("User_ID").value
  2. LocationID = oCmdInfo.Parameters("Location_ID").value
  3. SessionUserEncode = base64_encode("UserID=" & userID )
  4. SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  5.  

On the receiving page (Pagereceive.as p) I have
Expand|Select|Wrap|Line Numbers
  1. SessionUserDecode = base64_Decode(SessionUserEncode)
  2. SessionLocationDecode = base64_decode(SessionHardwareEncode)
  3.  

This will work if I am the user who does all the inputting of the form
and my browser is still open when I receive the email link and click
on it. If my browser is closed the session get's lost obviously.
In that case store session details in a DB. You will need to manage session
lifetime yourself though.
Jun 14 '07 #2
On Jun 14, 3:24 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
"MrHelpMe" <clintto...@hot mail.comwrote in message

news:11******** **************@ n15g2000prd.goo glegroups.com.. .
Hello again all,
I've finished my whole application and now I don't like the whole
session variables that I am using.

What does that mean? You don't like session variables at all?
You don't like the set of session variables you are using?
Why don't you like them?
I have a form, user fills in info
clicks submit and using CDOSYSMail an email link gets created with an
encoded query string. i.e
http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
http://www.yahoo.ca?userID=54&LocationID=Denver.
Now when the user get's this email and clicks on the link I have a
decode function(again using BASE64) that takes that url and decodes it
tohttp://www.yahoo.ca?us erID=54&Locatio nID=Denver. My app then
connects to the database and pulls info associated with that
querystring. I am doing the passing from page to page using session
variables. I do not want to do this?

Why? Without knowing that it's difficult to determine what is an
appropriate alternative.


Any ideas How I can take what
is encoded in the url link and decode it on the next page? Let me
know if there is a simple solution to this. I love the encode/decoding
function. Thanks very much.
Right now I have on one page i.e Page1.ASP
Expand|Select|Wrap|Line Numbers
  1.  userID = oCmdInfo.Parameters("User_ID").value
  2.  LocationID = oCmdInfo.Parameters("Location_ID").value
Expand|Select|Wrap|Line Numbers
  1.         
  2.                  SessionUserEncode = base64_encode("UserID=" & userID )
  3.  SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  •  
  •         
  •  
  •  
  •  
  • On the receiving page (Pagereceive.as p) I have
    Expand|Select|Wrap|Line Numbers
    1.  SessionUserDecode = base64_Decode(SessionUserEncode)
    2.  SessionLocationDecode = base64_decode(SessionHardwareEncode)
    3.  
    This will work if I am the user who does all the inputting of the form
    and my browser is still open when I receive the email link and click
    on it. If my browser is closed the session get's lost obviously.

    In that case store session details in a DB. You will need to manage session
    lifetime yourself though.- Hide quoted text -

    - Show quoted text - Anthony,

    Thanks for the reply. No, it does not mean that I do not like session
    variables at all. What it means is that session variables will not
    work in this case. What is happening is a user fills out a form and
    an email link goes to someone else. When the receiving user clicks
    the link he/she is getting the error: record does not exist because
    the session expires as soon as the user fills out the form, presses
    submit and closes his/her browser. So in this case I can't use
    session variables because it does not work. This is why I am looking
    for an alternative. Hope this is clearer. Thanks Anthony.

    Jun 14 '07 #3

    "MrHelpMe" <cl********@hot mail.comwrote in message
    news:11******** **************@ n15g2000prd.goo glegroups.com.. .
    On Jun 14, 3:24 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message

    news:11******** **************@ n15g2000prd.goo glegroups.com.. .
    Hello again all,
    I've finished my whole application and now I don't like the whole
    session variables that I am using.
    What does that mean? You don't like session variables at all?
    You don't like the set of session variables you are using?
    Why don't you like them?
    >I have a form, user fills in info
    clicks submit and using CDOSYSMail an email link gets created with an
    encoded query string. i.e
    >http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
    >http://www.yahoo.ca?userID=54&LocationID=Denver.
    Now when the user get's this email and clicks on the link I have a
    decode function(again using BASE64) that takes that url and decodes it
    tohttp://www.yahoo.ca?us erID=54&Locatio nID=Denver. My app then
    connects to the database and pulls info associated with that
    querystring. I am doing the passing from page to page using session
    variables. I do not want to do this?
    Why? Without knowing that it's difficult to determine what is an
    appropriate alternative.


    Any ideas How I can take what
    is encoded in the url link and decode it on the next page? Let me
    know if there is a simple solution to this. I love the encode/decoding
    function. Thanks very much.
    Right now I have on one page i.e Page1.ASP
    Expand|Select|Wrap|Line Numbers
    1.  userID = oCmdInfo.Parameters("User_ID").value
    2.  LocationID = oCmdInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.  
    2.         
    3.                  SessionUserEncode = base64_encode("UserID=" & userID )
    4.  SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  •  
  •  
  •         
  •  
  •  
  •  
  • On the receiving page (Pagereceive.as p) I have
    Expand|Select|Wrap|Line Numbers
    1.  SessionUserDecode = base64_Decode(SessionUserEncode)
    2.  SessionLocationDecode = base64_decode(SessionHardwareEncode)
    3.  
    This will work if I am the user who does all the inputting of the form
    and my browser is still open when I receive the email link and click
    on it. If my browser is closed the session get's lost obviously.
    In that case store session details in a DB. You will need to manage session
    lifetime yourself though.- Hide quoted text -

    - Show quoted text -

    Anthony,

    Thanks for the reply. No, it does not mean that I do not like session
    variables at all. What it means is that session variables will not
    work in this case. What is happening is a user fills out a form and
    an email link goes to someone else. When the receiving user clicks
    the link he/she is getting the error: record does not exist because
    the session expires as soon as the user fills out the form, presses
    submit and closes his/her browser. So in this case I can't use
    session variables because it does not work. This is why I am looking
    for an alternative. Hope this is clearer. Thanks Anthony.
    If the link is going to a different user then you could never have expect
    the receiving user's session to be the same as the generating user even if
    the original user didn't close their browser. Each browser process will get
    its own ASP session.

    Since you are sending a link by email which has a potentially long delivery
    time you need to persist the required data somewhere that will survive even
    a server reboot. IOW you need to store all the required info in a DB.


    Jun 14 '07 #4
    On Jun 14, 9:23 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message

    news:11******** **************@ n15g2000prd.goo glegroups.com.. .


    On Jun 14, 3:24 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message
    >news:11******* *************** @n15g2000prd.go oglegroups.com. ..
    Hello again all,
    I've finished my whole application and now I don't like the whole
    session variables that I am using.
    What does that mean? You don't like session variables at all?
    You don't like the set of session variables you are using?
    Why don't you like them?
    I have a form, user fills in info
    clicks submit and using CDOSYSMail an email link gets created with an
    encoded query string. i.e
    http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
    http://www.yahoo.ca?userID=54&LocationID=Denver.
    Now when the user get's this email and clicks on the link I have a
    decode function(again using BASE64) that takes that url and decodes it
    tohttp://www.yahoo.ca?us erID=54&Locatio nID=Denver. My app then
    connects to the database and pulls info associated with that
    querystring. I am doing the passing from page to page using session
    variables. I do not want to do this?
    Why? Without knowing that it's difficult to determine what is an
    appropriate alternative.
    Any ideas How I can take what
    is encoded in the url link and decode it on the next page? Let me
    know if there is a simple solution to this. I love the encode/decoding
    function. Thanks very much.
    Right now I have on one page i.e Page1.ASP
    Expand|Select|Wrap|Line Numbers
    1.   userID = oCmdInfo.Parameters("User_ID").value
    2.   LocationID = oCmdInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.         
    2.                         
    3.                   SessionUserEncode = base64_encode("UserID=" & userID )
    4.   SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  •  
  •         
  •                         
  •  
  •  
  •  
  • On the receiving page (Pagereceive.as p) I have
    Expand|Select|Wrap|Line Numbers
    1.   SessionUserDecode = base64_Decode(SessionUserEncode)
    2.   SessionLocationDecode = base64_decode(SessionHardwareEncode)
    3.  
    This will work if I am the user who does all the inputting of the form
    and my browser is still open when I receive the email link and click
    on it. If my browser is closed the session get's lost obviously.
    In that case store session details in a DB. You will need to manage
    session
    lifetime yourself though.- Hide quoted text -
    - Show quoted text -
    Anthony,
    Thanks for the reply. No, it does not mean that I do not like session
    variables at all. What it means is that session variables will not
    work in this case. What is happening is a user fills out a form and
    an email link goes to someone else. When the receiving user clicks
    the link he/she is getting the error: record does not exist because
    the session expires as soon as the user fills out the form, presses
    submit and closes his/her browser. So in this case I can't use
    session variables because it does not work. This is why I am looking
    for an alternative. Hope this is clearer. Thanks Anthony.

    If the link is going to a different user then you could never have expect
    the receiving user's session to be the same as the generating user even if
    the original user didn't close their browser. Each browser process will get
    its own ASP session.

    Since you are sending a link by email which has a potentially long delivery
    time you need to persist the required data somewhere that will survive even
    a server reboot. IOW you need to store all the required info in a DB.- Hide quoted text -

    - Show quoted text - Sorry not following your last part. All the required info is in a
    db(oracle). My stored procedure pulls the last returned values for
    UserID and LocationID and then I use those values to carry them to the
    URL and once the URL is clicked the values are then searched for in
    the DB. Sorry am I missing something.

    Jun 14 '07 #5

    "MrHelpMe" <cl********@hot mail.comwrote in message
    news:11******** *************@i 13g2000prf.goog legroups.com...
    On Jun 14, 9:23 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message

    news:11******** **************@ n15g2000prd.goo glegroups.com.. .


    On Jun 14, 3:24 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message
    news:11******** **************@ n15g2000prd.goo glegroups.com.. .
    Hello again all,
    I've finished my whole application and now I don't like the whole
    session variables that I am using.
    What does that mean? You don't like session variables at all?
    You don't like the set of session variables you are using?
    Why don't you like them?
    >I have a form, user fills in info
    clicks submit and using CDOSYSMail an email link gets created with
    an
    encoded query string. i.e
    >http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
    >http://www.yahoo.ca?userID=54&LocationID=Denver.
    Now when the user get's this email and clicks on the link I have a
    decode function(again using BASE64) that takes that url and
    decodes it
    tohttp://www.yahoo.ca?us erID=54&Locatio nID=Denver. My app then
    connects to the database and pulls info associated with that
    querystring. I am doing the passing from page to page using
    session
    variables. I do not want to do this?
    Why? Without knowing that it's difficult to determine what is an
    appropriate alternative.
    Any ideas How I can take what
    is encoded in the url link and decode it on the next page? Let me
    know if there is a simple solution to this. I love the
    encode/decoding
    function. Thanks very much.
    Right now I have on one page i.e Page1.ASP
    Expand|Select|Wrap|Line Numbers
    1.   userID = oCmdInfo.Parameters("User_ID").value
    2.   LocationID = oCmdInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.  
    2.         
    3.                   SessionUserEncode = base64_encode("UserID=" & userID )
    4.   SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  •  
  •  
  •         
  •  
  •  
  •  
  • On the receiving page (Pagereceive.as p) I have
    Expand|Select|Wrap|Line Numbers
    1.   SessionUserDecode = base64_Decode(SessionUserEncode)
    2.   SessionLocationDecode = base64_decode(SessionHardwareEncode)
    3.  
    This will work if I am the user who does all the inputting of the
    form
    and my browser is still open when I receive the email link and
    click
    on it. If my browser is closed the session get's lost obviously.
    In that case store session details in a DB. You will need to manage
    session
    lifetime yourself though.- Hide quoted text -
    - Show quoted text -
    Anthony,
    Thanks for the reply. No, it does not mean that I do not like session
    variables at all. What it means is that session variables will not
    work in this case. What is happening is a user fills out a form and
    an email link goes to someone else. When the receiving user clicks
    the link he/she is getting the error: record does not exist because
    the session expires as soon as the user fills out the form, presses
    submit and closes his/her browser. So in this case I can't use
    session variables because it does not work. This is why I am looking
    for an alternative. Hope this is clearer. Thanks Anthony.
    If the link is going to a different user then you could never have
    expect
    the receiving user's session to be the same as the generating user even
    if
    the original user didn't close their browser. Each browser process will
    get
    its own ASP session.

    Since you are sending a link by email which has a potentially long
    delivery
    time you need to persist the required data somewhere that will survive
    even
    a server reboot. IOW you need to store all the required info in a DB.-
    Hide quoted text -

    - Show quoted text -

    Sorry not following your last part. All the required info is in a
    db(oracle). My stored procedure pulls the last returned values for
    UserID and LocationID and then I use those values to carry them to the
    URL and once the URL is clicked the values are then searched for in
    the DB. Sorry am I missing something.
    "What we have here is a failure to communicate"

    Since A) the UserID and LocationID is encoded in the URL and B) all other
    data is already in the DB what did you need the Session object for in the
    first place??

    Once the receiving user clicks the URL the requested page can decode the
    UserID and LocationID (not sure why you're bothering with that step BTW) and
    can then query the DB.


    Jun 14 '07 #6
    On Jun 14, 9:56 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message

    news:11******** *************@i 13g2000prf.goog legroups.com...


    On Jun 14, 9:23 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message
    >news:11******* *************** @n15g2000prd.go oglegroups.com. ..
    On Jun 14, 3:24 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    "MrHelpMe" <clintto...@hot mail.comwrote in message
    >news:11******* *************** @n15g2000prd.go oglegroups.com. ..
    Hello again all,
    I've finished my whole application and now I don't like the whole
    session variables that I am using.
    What does that mean? You don't like session variables at all?
    You don't like the set of session variables you are using?
    Why don't you like them?
    I have a form, user fills in info
    clicks submit and using CDOSYSMail an email link gets created with
    an
    encoded query string. i.e
    http://www.yahoo.ca?#$ @%@&#%#$@&^@%# which translates into
    http://www.yahoo.ca?userID=54&LocationID=Denver.
    Now when the user get's this email and clicks on the link I have a
    decode function(again using BASE64) that takes that url and
    decodes it
    tohttp://www.yahoo.ca?us erID=54&Locatio nID=Denver. My app then
    connects to the database and pulls info associated with that
    querystring. I am doing the passing from page to page using
    session
    variables. I do not want to do this?
    Why? Without knowing that it's difficult to determine what is an
    appropriate alternative.
    Any ideas How I can take what
    is encoded in the url link and decode it on the next page? Let me
    know if there is a simple solution to this. I love the
    encode/decoding
    function. Thanks very much.
    Right now I have on one page i.e Page1.ASP
    Expand|Select|Wrap|Line Numbers
    1.    userID = oCmdInfo.Parameters("User_ID").value
    2.    LocationID = oCmdInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.         
    2.                         
    3.                    SessionUserEncode = base64_encode("UserID=" & userID )
    4.    SessionLocationEncode = base64_encode("LocationID =" & LocationID)
  •  
  •         
  •                         
  •  
  •  
  •  
  • On the receiving page (Pagereceive.as p) I have
    Expand|Select|Wrap|Line Numbers
    1.    SessionUserDecode = base64_Decode(SessionUserEncode)
    2.    SessionLocationDecode = base64_decode(SessionHardwareEncode)
    3.  
    This will work if I am the user who does all the inputting of the
    form
    and my browser is still open when I receive the email link and
    click
    on it. If my browser is closed the session get's lost obviously.
    In that case store session details in a DB. You will need to manage
    session
    lifetime yourself though.- Hide quoted text -
    - Show quoted text -
    Anthony,
    Thanks for the reply. No, it does not mean that I do not like session
    variables at all. What it means is that session variables will not
    work in this case. What is happening is a user fills out a form and
    an email link goes to someone else. When the receiving user clicks
    the link he/she is getting the error: record does not exist because
    the session expires as soon as the user fills out the form, presses
    submit and closes his/her browser. So in this case I can't use
    session variables because it does not work. This is why I am looking
    for an alternative. Hope this is clearer. Thanks Anthony.
    If the link is going to a different user then you could never have
    expect
    the receiving user's session to be the same as the generating user even
    if
    the original user didn't close their browser. Each browser process will
    get
    its own ASP session.
    Since you are sending a link by email which has a potentially long
    delivery
    time you need to persist the required data somewhere that will survive
    even
    a server reboot. IOW you need to store all the required info in a DB.-
    Hide quoted text -
    - Show quoted text -
    Sorry not following your last part. All the required info is in a
    db(oracle). My stored procedure pulls the last returned values for
    UserID and LocationID and then I use those values to carry them to the
    URL and once the URL is clicked the values are then searched for in
    the DB. Sorry am I missing something.

    "What we have here is a failure to communicate"

    Since A) the UserID and LocationID is encoded in the URL and B) all other
    data is already in the DB what did you need the Session object for in the
    first place??

    Once the receiving user clicks the URL the requested page can decode the
    UserID and LocationID (not sure why you're bothering with that step BTW) and
    can then query the DB.- Hide quoted text -

    - Show quoted text - :) O.k it probably would have been worth to note that I am not the
    most proficient with ASP. You have basically just described what I
    need but have no idea how to code that:) You are right, I didn't need
    session variables but I have no idea how to pass the data from page to
    page except using the request.queryst ring. But if I use this as well
    as the encoding, for some reason I can't get it to decode the URL.
    Your help would be appreciated just to start me off Anthony. I have
    one page that is a form, another page that receives the form
    information and inserts into the database and send an emailed URL.
    When the user clicks the URL, this is the page that I have no idea on
    how to decode the contents of the URL because I need to pass the
    encoded values from the last page to this page. Sorry my explaination
    is not the best. This is what I tried to do with session variables
    Expand|Select|Wrap|Line Numbers
    1. LastID = oCmdUserInfo.Parameters("User_ID").value
    2. LocationID = oCmdUserInfo.Parameters("Location_ID").value
    3.  
    4. SessionUserID = base64_encode("UserID=" & LastID)
    5. SessionLocationID = base64_encode("LocationID=" & LocationID)
    6.  
    7. ----this code will then go on the next page
    8. SessionDecode = base64_Decode(SessionUserID)
    9. SessionLocationDecode = base64_decode(SessionLocationID)
    10.  
    Your probably laughing at me right now:)

    Jun 14 '07 #7
    >
    :) O.k it probably would have been worth to note that I am not the
    most proficient with ASP. You have basically just described what I
    need but have no idea how to code that:) You are right, I didn't need
    session variables but I have no idea how to pass the data from page to
    page except using the request.queryst ring. But if I use this as well
    as the encoding, for some reason I can't get it to decode the URL.
    Your help would be appreciated just to start me off Anthony. I have
    one page that is a form, another page that receives the form
    information and inserts into the database and send an emailed URL.
    When the user clicks the URL, this is the page that I have no idea on
    how to decode the contents of the URL because I need to pass the
    encoded values from the last page to this page. Sorry my explaination
    is not the best. This is what I tried to do with session variables
    Expand|Select|Wrap|Line Numbers
    1. LastID = oCmdUserInfo.Parameters("User_ID").value
    2. LocationID = oCmdUserInfo.Parameters("Location_ID").value
    3. SessionUserID = base64_encode("UserID=" & LastID)
    4. SessionLocationID = base64_encode("LocationID=" & LocationID)
    5. ----this code will then go on the next page
    6. SessionDecode = base64_Decode(SessionUserID)
    7. SessionLocationDecode = base64_decode(SessionLocationID)
    8.  

    Your probably laughing at me right now:)
    Lets put the base64 stuff to one side to make things a bit clearer (and
    because it isn't much use).

    The key thing here is that you creating a URL that is sent to another person
    via email and the querystring portion of the URL (some times known as the
    search string) contains 'session data' you need to transfer.

    http://yoursite.com/receivepage.asp?...ationID=Denver

    The code in the receivepage needs to do the following:-

    SessionUserID = Request.QuerySt ring("userID")
    SessionLocation ID = Request.QuerySt ring("locationI D")


    Jun 14 '07 #8
    On Jun 14, 10:59 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    :) O.k it probably would have been worth to note that I am not the
    most proficient with ASP. You have basically just described what I
    need but have no idea how to code that:) You are right, I didn't need
    session variables but I have no idea how to pass the data from page to
    page except using the request.queryst ring. But if I use this as well
    as the encoding, for some reason I can't get it to decode the URL.
    Your help would be appreciated just to start me off Anthony. I have
    one page that is a form, another page that receives the form
    information and inserts into the database and send an emailed URL.
    When the user clicks the URL, this is the page that I have no idea on
    how to decode the contents of the URL because I need to pass the
    encoded values from the last page to this page. Sorry my explaination
    is not the best. This is what I tried to do with session variables
    Expand|Select|Wrap|Line Numbers
    1.  LastID = oCmdUserInfo.Parameters("User_ID").value
    2.  LocationID = oCmdUserInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.         
    2.                  SessionUserID = base64_encode("UserID=" & LastID)
    3.  SessionLocationID = base64_encode("LocationID=" & LocationID)
  •  
  •         
  •                  ----this code will then go on the next page
  •  SessionDecode = base64_Decode(SessionUserID)
  •  SessionLocationDecode = base64_decode(SessionLocationID)
  •  
  •  
  • Your probably laughing at me right now:)

    Lets put the base64 stuff to one side to make things a bit clearer (and
    because it isn't much use).

    The key thing here is that you creating a URL that is sent to another person
    via email and the querystring portion of the URL (some times known as the
    search string) contains 'session data' you need to transfer.

    http://yoursite.com/receivepage.asp?...ationID=Denver

    The code in the receivepage needs to do the following:-

    SessionUserID = Request.QuerySt ring("userID")
    SessionLocation ID = Request.QuerySt ring("locationI D")- Hide quoted text -

    - Show quoted text - O.k I got you on that and that is what I did on the receiving side.
    What is next?

    Jun 14 '07 #9

    "MrHelpMe" <cl********@hot mail.comwrote in message
    news:11******** **************@ a26g2000pre.goo glegroups.com.. .
    On Jun 14, 10:59 am, "Anthony Jones" <A...@yadayaday ada.comwrote:
    :) O.k it probably would have been worth to note that I am not the
    most proficient with ASP. You have basically just described what I
    need but have no idea how to code that:) You are right, I didn't need
    session variables but I have no idea how to pass the data from page to
    page except using the request.queryst ring. But if I use this as well
    as the encoding, for some reason I can't get it to decode the URL.
    Your help would be appreciated just to start me off Anthony. I have
    one page that is a form, another page that receives the form
    information and inserts into the database and send an emailed URL.
    When the user clicks the URL, this is the page that I have no idea on
    how to decode the contents of the URL because I need to pass the
    encoded values from the last page to this page. Sorry my explaination
    is not the best. This is what I tried to do with session variables
    Expand|Select|Wrap|Line Numbers
    1.  LastID = oCmdUserInfo.Parameters("User_ID").value
    2.  LocationID = oCmdUserInfo.Parameters("Location_ID").value
    Expand|Select|Wrap|Line Numbers
    1.  
    2.         
    3.                  SessionUserID = base64_encode("UserID=" & LastID)
    4.  SessionLocationID = base64_encode("LocationID=" & LocationID)
  •  
  •  
  •         
  •                  ----this code will then go on the next page
  •  SessionDecode = base64_Decode(SessionUserID)
  •  SessionLocationDecode = base64_decode(SessionLocationID)
  •  
  •  
  • Your probably laughing at me right now:)
    Lets put the base64 stuff to one side to make things a bit clearer (and
    because it isn't much use).

    The key thing here is that you creating a URL that is sent to another person
    via email and the querystring portion of the URL (some times known as
    the
    search string) contains 'session data' you need to transfer.

    http://yoursite.com/receivepage.asp?...ationID=Denver

    The code in the receivepage needs to do the following:-

    SessionUserID = Request.QuerySt ring("userID")
    SessionLocation ID = Request.QuerySt ring("locationI D")- Hide quoted
    text -

    - Show quoted text -

    O.k I got you on that and that is what I did on the receiving side.
    What is next?
    That depends on what you want to do next. You've got your values in to
    variables I thought that was the only thing you were having trouble with.

    If you want to persist those values for other pages that the receiving user
    may visit on your site now you can place them in the session object:-

    Session("UserID ") = SessionUserID
    Session("Locati onID") = SessionLocation ID

    Then in other pages you can do:-

    SessionUserID = Session("UserID ")
    SessionLocation ID = Session("Locati onID")

    Jun 14 '07 #10

    This thread has been closed and replies have been disabled. Please start a new discussion.

    Similar topics

    5
    26291
    by: Rodney Pont | last post by:
    I've got the example below to set up phpOpenTracker to log exit URL's but I'm having trouble getting it to work. I have played with the quotes and changed the \\2 to $3 and got the url in there but I can't get it to base64 encode it. I'm new to PHP and any help on getting the encoding to work would be appreciated. <?php function encode_exit_urls($buffer) {
    3
    5394
    by: wenmang | last post by:
    Hi, I ma thinking whether to use Base64 encoding to encode the binary content in the XML file. I have done some simple calculations, it seems to me that the size for encoded content increases by ~30%, is this the drawback for using the encoding scheme? Thanks.
    1
    537
    by: mvdevnull | last post by:
    hey all currently i use the following piece of code to check if the string passed to me can be converted to base64, it is not very efficient and bad, can someone please suggest another of doing this private string ConvertBase64ToString(string content) { StringBuilder sb = new StringBuilder(); int i = content.GetUpperBound(0);
    2
    29328
    by: kevin | last post by:
    DISCLAIMER: I know what the words mean (i.e. by definition), but I in know way pretend to understand the specifics of either, therefore I may need a basic primer before I can accomplish this task, but the instructions I received do not seem correct. I need to covert a hex string to base64 and was told to 1. convert from the HEX string to a byte array 2. convert the byte array to Base64 encoding 3. the two encodings would produce the...
    5
    4118
    by: Jay | last post by:
    I have bean trying to get my head around reading .GIF files from base64 strings, Basically I need to specify a filename and convert it to base64 then I can copy/past the string to wear I want it. Cold somebody check this for me to see what I have done wrong: If you run this program and enter a path for a .GIF file into the white box and hit <Enter> it should display the string in the blue box. To test this if you click the menu File...
    9
    9728
    by: Jeremy Kitchen | last post by:
    Are there any library functions that can help me to do this? If necessary I can convert the string to a byte array. I don't want to have to write my own Hex conversion if it isn't necessary. Thanks for any help Jeremy Kitchen
    8
    2805
    by: Jeremy Kitchen | last post by:
    I have encoded a string into Base64 for the purpose of encryption. I then later decrypted it and converted it back from Base64 the final string returns with four nothing characters. "pass" what the result should be "pass____ what the result is where each underline char is a nothing char. I am about to write a function that will remove the nothing chars butI would like to know what is causing the problem and simply avoid it
    10
    4054
    by: pycraze | last post by:
    Hi , I am currently trying to implement base64 encoding and decoding scheme in C . Python has a module , base64 , that will do the encoding and decoding with ease . I am aware of OpenSSL having support for base64 encoding and decoding , but i will have to now implement both in C without using the openssl libraries . I was able to download a code w.r.t. base 64 encoding and decoding . I am attaching the code below .
    1
    6857
    by: maxxxxel | last post by:
    Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send mail externally to a internet email site like Gmail the PDF is sent but is corrupted because CDOSYS ends up using binary encoding rather than Base64 encoding when creating the attachment. More information here: Anthonys Code My knowledge of ASP...
    0
    8957
    marktang
    by: marktang | last post by:
    ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
    0
    9459
    Oralloy
    by: Oralloy | last post by:
    Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
    0
    9321
    jinu1996
    by: jinu1996 | last post by:
    In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
    1
    9248
    by: Hystou | last post by:
    Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
    0
    9193
    tracyyun
    by: tracyyun | last post by:
    Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
    0
    8194
    agi2029
    by: agi2029 | last post by:
    Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
    0
    6043
    by: conductexam | last post by:
    I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
    0
    4555
    by: TSSRALBI | last post by:
    Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
    3
    2185
    bsmnconsultancy
    by: bsmnconsultancy | last post by:
    In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

    By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

    To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.