chrometweaks.org

Which hosting is best iPage or HostMonster? [From Performance - Uptime - Support perspective]?

Click Here To View All Answers...


Got a question, hope someone can answer... Which hosting is best iPage or HostMonster? [From Performance - Uptime - Support perspective]? Thanks in advance for any response. My 2nd question... I'm wondering if there is an easy workaround for this problem. My iPage site has more than just the store, everything that's not the store isn't running inside of the oscommerce interface. When I go to another part of my site, and then click on a link back to the store, the session is lost, my cart is empty, and I have to log in again.



This post has been edited by.

Hyp0r.

: 19 January 2004, 00:40..

Comments (78)

That's a good question. I'm not sure what is the answer. I'll do some poking around and get back to you if I got an answer. You should email the people at iPage as they probably can answer it..

Comment #1

It is not possible to store that information in a cookie or something? Is there a contrib that will do this for me? I want people to be able to leave the iPage site and come back and still have the iPage site know who they are...

Comment #2

The session times out after a while..

If people registered on your osC iPage site the software WILL remember them...

Comment #3

Admin > Configuration > Sessions > Force Cookie Use: set to true. Note: session will still time out (after 20 minutes?), but you will be able to go to an outside link and come back within that period..

Hth,.

Matt..

Comment #4

I'm getting this error:.

But I have cookies on, in IE my level is set to medium, no custom settings...

Comment #5

I too am very curious about this...i am using a Macromedia Flash application that allows users to customize greeting cards with their own custom text and I am being forced to pass the session id to my flash applications and EXPLICITLY add the session id to every link..

Fyi, hyp0r, osCommerce stores the session ID for your session in a variable $osCsid. If you'd like to make sure your variables are available when you move to the other parts of your site, you are going to have to pass this information along to the other parts of your application and then add the osCsid arg to every link that returns to your catalog/store. In my case, I pass the osCsid to my flash application (i will spare everyone the mechanical details) and any links back into the store I add an argument to the end of the URL like this:.

Mypage.php?osCsid=<put the session id here>.

This seems to work for me, HOWEVER, the session ID is there in plain sight...i understand that this is a bit of a security risk as users my EMAIL this url to a friend or it might stick around in the browser's history, etc..

Does anyone know a way to enable URL rewriting? my PHP install sets the default session id name to PHPSESSID or something similar. I have been trying to get my head around how PHP behaves when rewriting URLS and i'm having trouble figuring it out because it seems to be a bit erratic. I also understand that using URL rewriting is not such a good idea on a high performance iPage site as it will cause a performance hit if you're rewriting every relative link in your site..

Any brilliant sagely types out there want to clue us in?..

Comment #6

The session doesn't time out after a while, it times out instantly, as soon as the osCid is not part of the URL, why is the osCid not being stored in a cookie. I tried the force cookie setting, but it claimed that I didn't have cookies turned on, even though I do. Maybe somewhere along the line I messed something up and it's not setting the cookie properly...

Comment #7

Perhaps your cookie settings in your configuration file are incorrect and the cookie is not being set - post that part of your file..

Matti..

Comment #8

These settings?.

This post has been edited by.

Hyp0r.

: 20 January 2004, 01:19..

Comment #9

Thanks! After I posted that I tried taking off the "http://" part, didn't work, then I tried taking off the "www." part, and it's working. Thanks for setting me in motion...

Comment #10

Uh oh, I think the cookie is not getting set properly, now I can't login to the site, it just keeps throwing me back to the login page when I try...

Comment #11

Ok, ignore the previous post, when I shut down my browser and cleared out my cookies it started working.... I think...

Comment #12

Anyone figure this out yet? I am having the same exact problem, and this just started when I added SSL to my site..

I have Force Cookies = FALSE.

And all works fine until users navigate to a "non-catalog" page, such as my mailing list page, and then as soon as they come back it looses the osCsid and they have to re-login, etc..

When I tried Force Cookies = TRUE then it stops sending osCsid's in the URLs and I also get the "Cookies not enabled" page when I try to log in..

This is driving me crazy!!.

-priest-..

Comment #13

I'm not at all sure, but when you say your 'mailing list page', i'm guessing you mean a page that you have developed on your own, entirely independent of oscommerce, no? if so, you may want to consider a couple of things.

Again, I don't know if this will work..

Option 1) if your file is PHP, add an include to the oscommerce file 'application_top.php' (in the includes folder I believe). this file initiates session stuff for OSC. just including it may not be enough...there may be other stuff you have to do..

Option 2) make all links to your mailing list page include something like this:.

// tep_session_id() is a function that returns your session id.

<A HREF="my_mailinglist_page.php?osCsid=<? echo tep_session_id()   ?>">Here's my mailing list</a>.

And then make SURE that your mailing list retrieves that argument from the GET variables and any links back to OSCOMMERCE also include that argument appended to the end of your URL...this tells OSCOMMERCE which session you're dealing with..

3) if you are using HTML, think about relegating your mailing list to a popup window so that your main browser window keeps the session alive..

I hope this helps. oscommerce is very complex....more like oscomplex...harhar..

Comment #14

Yes, my mailing list page (and I have others) is just a plain html page that I have created and then added a link to it in a box on osCommerce catalog page..

The thing is, when I disable SSL, I have no problem going from OSC catalog to regular html pages and back and still remaining signed in, keeping products in shopping cart, etc..

But, I am switching to authorize.net and so I setup my SSL and when I enable it for OSC... that's when it starts creating osCsid's and then resets then anytime I go to a static html page, signs the user out, empty's the shopping cart, etc..

It is just such a hassle because I have my mailing list page, affiliate info page - and these are static html pages. Then I have a 3rd party helpdesk so (when SSL enabled) anytime someone comes/goes from these pages, it resets everything!.

Aw... things were so much simpler without SSL. Maybe I should just stick with 2CheckOut!.

-priest-..

Comment #15

I'm wondering if there is an easy workaround for this problem. My iPage site has more than just the store, everything that's not the store isn't running inside of the oscommerce interface. When I go to another part of my site, and then click on a link back to the store, the session is lost, my cart is empty, and I have to log in again. How do I fix this?.

This post has been edited by.

Hyp0r.

: 19 January 2004, 00:40..

Comment #16

It's because you need to ensure the users session ID is being passed around in the URL when navigating around the site...

Comment #17


This question was taken from a support group/message board and re-posted here so others can learn from it.